Searched refs:optptr (Results 1 – 2 of 2) sorted by relevance
213 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment() local219 switch (*optptr) { in ip_options_fragment()224 optptr++; in ip_options_fragment()227 optlen = optptr[1]; in ip_options_fragment()230 if (!IPOPT_COPIED(*optptr)) in ip_options_fragment()231 memset(optptr, IPOPT_NOOP, optlen); in ip_options_fragment()233 optptr += optlen; in ip_options_fragment()254 unsigned char * optptr; in ip_options_compile() local261 optptr = (unsigned char *)&(ip_hdr(skb)[1]); in ip_options_compile()263 optptr = opt->__data; in ip_options_compile()[all …]
19 unsigned char * optptr = (unsigned char*)(iph+1); in ip_clear_mutable_options() local24 switch (*optptr) { in ip_clear_mutable_options()29 optptr++; in ip_clear_mutable_options()32 optlen = optptr[1]; in ip_clear_mutable_options()35 switch (*optptr) { in ip_clear_mutable_options()46 memcpy(daddr, optptr+optlen-4, 4); in ip_clear_mutable_options()49 memset(optptr, 0, optlen); in ip_clear_mutable_options()52 optptr += optlen; in ip_clear_mutable_options()