Searched refs:optptr (Results 1 – 2 of 2) sorted by relevance
214 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment() local220 switch (*optptr) { in ip_options_fragment()225 optptr++; in ip_options_fragment()228 optlen = optptr[1]; in ip_options_fragment()231 if (!IPOPT_COPIED(*optptr)) in ip_options_fragment()232 memset(optptr, IPOPT_NOOP, optlen); in ip_options_fragment()234 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 …]
78 unsigned char * optptr = (unsigned char*)(iph+1); in ip_clear_mutable_options() local83 switch (*optptr) { in ip_clear_mutable_options()88 optptr++; in ip_clear_mutable_options()91 optlen = optptr[1]; in ip_clear_mutable_options()94 switch (*optptr) { in ip_clear_mutable_options()105 memcpy(daddr, optptr+optlen-4, 4); in ip_clear_mutable_options()108 memset(optptr, 0, optlen); in ip_clear_mutable_options()111 optptr += optlen; in ip_clear_mutable_options()