ec_ip6.c (ettercap-0.8.3) | : | ec_ip6.c (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 183 | skipping to change at line 183 | |||
/* passing the packet to options or upper-layer decoder */ | /* passing the packet to options or upper-layer decoder */ | |||
EXECUTE_DECODER(next_decoder); | EXECUTE_DECODER(next_decoder); | |||
/* | /* | |||
* External L3 header sets itself | * External L3 header sets itself | |||
* as the packet to be forwarded. | * as the packet to be forwarded. | |||
*/ | */ | |||
/* XXX - recheck this */ | /* XXX - recheck this */ | |||
if(!EC_GBL_OPTIONS->unoffensive && !EC_GBL_OPTIONS->read && (PACKET->flags & PO_FORWARDABLE)) { | if(!EC_GBL_OPTIONS->unoffensive && !EC_GBL_OPTIONS->read && (PACKET->flags & PO_FORWARDABLE)) { | |||
if(PACKET->flags & PO_MODIFIED) { | if(PACKET->flags & PO_MODIFIED) { | |||
ORDER_ADD_SHORT(PACKET->L3.payload_len, PACKET->DATA.delta); | ORDER_ADD_SHORT(ip6->payload_len, PACKET->DATA.delta); | |||
/* | /* | |||
* In case some upper level encapsulated ip6 decoder | * In case some upper level encapsulated ip6 decoder | |||
* modified it ... (required for ip6 in ip6 encapsulation) | * modified it ... (required for ip6 in ip6 encapsulation) | |||
*/ | */ | |||
PACKET->L3.header = (u_char*)ip6; | PACKET->L3.header = (u_char*)ip6; | |||
PACKET->L3.len = IP6_HDR_LEN; | PACKET->L3.len = IP6_HDR_LEN; | |||
PACKET->L3.payload_len = ntohs(ip6->payload_len); | PACKET->L3.payload_len = ntohs(ip6->payload_len); | |||
PACKET->fwd_len = PACKET->L3.payload_len + PACKET->L3.len; | PACKET->fwd_len = PACKET->L3.payload_len + PACKET->L3.len; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |