Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-g-v committed Aug 23, 2016
1 parent 8fde5b9 commit c8d83ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mkbridge
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
ip link add name br0 type bridge
ip link set dev br0 up

ip link set dev p4p2 promisc off
ip link set dev p4p2 promisc on
ip link set dev p4p2 up
ip link set dev p4p2 master br0
ip link set dev p6p1 promisc off
ip link set dev p6p1 promisc on
ip link set dev p6p1 up
ip link set dev p6p1 master br0
#ip link set dev br0 promisc off
4 changes: 2 additions & 2 deletions post.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static unsigned int arp_in_hook_func(void *priv,

vlan_id = skb_vlan_tag_get_id(skb);
team_id = vlan_id / 100;
//printk(KERN_INFO "[Before ARP IN] daddr %pI4, saddr %pI4 in:%s vlan_id: %d, team_id: %d \n", arpb->daddr, arpb->saddr, state->in->name, vlan_id, team_id);
//printk(KERN_INFO "[Before ARP IN] daddr %pI4, saddr %pI4 vlan_id: %d, team_id: %d \n", arpb->daddr, arpb->saddr, vlan_id, team_id);

if (!arpb->daddr || !arpb->saddr) {
return NF_ACCEPT;
Expand All @@ -159,7 +159,7 @@ static unsigned int arp_in_hook_func(void *priv,
skb->vlan_tci += 2000 + ADD_VLAN;
}

//printk(KERN_INFO "[After ARP IN] daddr %pI4, saddr %pI4 in:%s vlan_id: %d, team_id: %d \n", arpb->daddr, arpb->saddr, state->in->name, vlan_id, team_id);
//printk(KERN_INFO "[After ARP IN] daddr %pI4, saddr %pI4 vlan_id: %d, team_id: %d \n", arpb->daddr, arpb->saddr, vlan_id, team_id);


}
Expand Down
Binary file modified post.ko
Binary file not shown.
Binary file modified post.mod.o
Binary file not shown.

0 comments on commit c8d83ea

Please sign in to comment.