Home
last modified time | relevance | path

Searched refs:optptr (Results 1 – 3 of 3) sorted by relevance

/net/ipv4/
Dip_options.c210 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment() local
216 switch (*optptr) { in ip_options_fragment()
221 optptr++; in ip_options_fragment()
224 optlen = optptr[1]; in ip_options_fragment()
227 if (!IPOPT_COPIED(*optptr)) in ip_options_fragment()
228 memset(optptr, IPOPT_NOOP, optlen); in ip_options_fragment()
230 optptr += optlen; in ip_options_fragment()
261 unsigned char *optptr; in __ip_options_compile() local
267 optptr = (unsigned char *)&(ip_hdr(skb)[1]); in __ip_options_compile()
269 optptr = opt->__data; in __ip_options_compile()
[all …]
Dah4.c82 unsigned char *optptr = (unsigned char *)(iph+1); in ip_clear_mutable_options() local
87 switch (*optptr) { in ip_clear_mutable_options()
92 optptr++; in ip_clear_mutable_options()
95 optlen = optptr[1]; in ip_clear_mutable_options()
98 switch (*optptr) { in ip_clear_mutable_options()
109 memcpy(daddr, optptr+optlen-4, 4); in ip_clear_mutable_options()
112 memset(optptr, 0, optlen); in ip_clear_mutable_options()
115 optptr += optlen; in ip_clear_mutable_options()
Dcipso_ipv4.c1504 unsigned char *optptr = (unsigned char *)&(ip_hdr(skb)[1]); in cipso_v4_optptr() local
1509 switch (optptr[0]) { in cipso_v4_optptr()
1516 taglen = optptr[1]; in cipso_v4_optptr()
1520 if (optptr[0] == IPOPT_CIPSO) in cipso_v4_optptr()
1521 return optptr; in cipso_v4_optptr()
1524 optptr += taglen; in cipso_v4_optptr()