Searched refs:optptr (Results 1 – 3 of 3) sorted by relevance
212 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment() local218 switch (*optptr) { in ip_options_fragment()223 optptr++; in ip_options_fragment()226 optlen = optptr[1]; in ip_options_fragment()229 if (!IPOPT_COPIED(*optptr)) in ip_options_fragment()230 memset(optptr, IPOPT_NOOP, optlen); in ip_options_fragment()232 optptr += optlen; in ip_options_fragment()262 unsigned char *optptr; in ip_options_compile() local268 optptr = (unsigned char *)&(ip_hdr(skb)[1]); in ip_options_compile()270 optptr = opt->__data; in ip_options_compile()[all …]
80 unsigned char *optptr = (unsigned char *)(iph+1); in ip_clear_mutable_options() local85 switch (*optptr) { in ip_clear_mutable_options()90 optptr++; in ip_clear_mutable_options()93 optlen = optptr[1]; in ip_clear_mutable_options()96 switch (*optptr) { in ip_clear_mutable_options()107 memcpy(daddr, optptr+optlen-4, 4); in ip_clear_mutable_options()110 memset(optptr, 0, optlen); in ip_clear_mutable_options()113 optptr += optlen; in ip_clear_mutable_options()
1589 unsigned char *optptr = (unsigned char *)&(ip_hdr(skb)[1]); in cipso_v4_optptr() local1594 if (optptr[0] == IPOPT_CIPSO) in cipso_v4_optptr()1595 return optptr; in cipso_v4_optptr()1596 taglen = optptr[1]; in cipso_v4_optptr()1598 optptr += taglen; in cipso_v4_optptr()