From c8d83ea263557c4bc9608c6ea825b472b1c1133f Mon Sep 17 00:00:00 2001 From: greyia Date: Mon, 22 Aug 2016 22:01:47 -0700 Subject: [PATCH] wip --- mkbridge | 4 ++-- post.c | 4 ++-- post.ko | Bin 373815 -> 373815 bytes post.mod.o | Bin 62384 -> 62384 bytes 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mkbridge b/mkbridge index 8624ac6..4cc46f1 100755 --- a/mkbridge +++ b/mkbridge @@ -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 diff --git a/post.c b/post.c index a7464db..7743afe 100755 --- a/post.c +++ b/post.c @@ -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; @@ -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); } diff --git a/post.ko b/post.ko index ef62494406f733e21fa2ee39d5420b634061a354..a564cb4926458cac5f1e0837dc0b8da6b959a04d 100644 GIT binary patch delta 82 zcmdn~LTvjBu?YbpqHY&-ma(u*;9KV_<#J5?vgJ{Myp1WV*u;&Ejhv0l98C<2P0bw5 iES=3vEX+(@Oq*5N+f~^aftU%1nSq#PyDB@Y&{_a?#uttN delta 82 zcmdn~LTvjBu?YbpZF)ZzSzrHns31}~i0g58Md)dx1shXVv5A|Qy0{rznz}j}IJ!Dp iSQuHDS{gZ-IyS4ax2v)<0x=U1GXpWpc2#y(p|t=^gc{%g diff --git a/post.mod.o b/post.mod.o index 201f17b7b1f63cd37f2708d2915b7f10b6d7e3a1..4840c3616288095ef5a6e9c8a48d21fe9dde184d 100644 GIT binary patch delta 36 scmdn+oO#1@<_X^7#>Pg@MrMvC2F9jlj%Jq5W+oP9rY@!%ll(pd0Nqs!dH?_b delta 36 scmdn+oO#1@<_X^7CZ;ZK#+Ih8P6m#y&K4F%7N(X)PNt3