search for: oldip

Displaying 2 results from an estimated 2 matches for "oldip".

Did you mean: oldin
2005 Oct 14
5
[PATCH] Fix NAT for domU checksum offload
...lter/ip_nat_proto_udp.c 2005-10-14 15:17:53.000000000 -0500 @@ -112,11 +112,19 @@ udp_manip_pkt(struct sk_buff **pskb, newport = tuple->dst.u.udp.port; portptr = &hdr->dest; } - if (hdr->check) /* 0 is a special case meaning no checksum */ - hdr->check = ip_nat_cheat_check(~oldip, newip, + + if (hdr->check) { /* 0 is a special case meaning no checksum */ + if ((*pskb)->proto_csum_blank) { + hdr->check = ip_nat_cheat_check(oldip, ~newip, + ip_nat_cheat_check(*portptr ^ 0xFFFF, + newport, hdr->check)); + } else { + hdr->check = ip_nat_cheat_ch...
2009 Feb 10
1
Scripting Oddity
...Script for setting up a bridge accessible by a qemu VM. # # First, make sure we're starting with a clean slate. /usr/bin/sudo /sbin/rmmod bridge /usr/bin/sudo /sbin/rmmod tun /usr/bin/sudo /sbin/service network restart # # Grab the IP address of the given interface so we can restore it later. # oldIP=`/sbin/ifconfig $1 | /bin/grep 'inet addr' | /usr/bin/awk -F \: '{print substr($2,0,index($2, " ")) ; }'` echo "$1 currently has IP address $oldIP" # # Create the bridge. # /usr/bin/sudo /usr/sbin/brctl addbr br0 /usr/bin/sudo /sbin/ifconfig $1 0.0.0.0 sleep 2...