Home
last modified time | relevance | path

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

/linux-4.4.14/net/ipv4/
Dip_options.c213 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment() local
219 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()
263 unsigned char *optptr; in ip_options_compile() local
269 optptr = (unsigned char *)&(ip_hdr(skb)[1]); in ip_options_compile()
271 optptr = opt->__data; in ip_options_compile()
[all …]
Dah4.c80 unsigned char *optptr = (unsigned char *)(iph+1); in ip_clear_mutable_options() local
85 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()
Dcipso_ipv4.c1591 unsigned char *optptr = (unsigned char *)&(ip_hdr(skb)[1]); in cipso_v4_optptr() local
1596 if (optptr[0] == IPOPT_CIPSO) in cipso_v4_optptr()
1597 return optptr; in cipso_v4_optptr()
1598 taglen = optptr[1]; in cipso_v4_optptr()
1600 optptr += taglen; in cipso_v4_optptr()
/linux-4.4.14/arch/mips/mti-malta/
Dmalta-setup.c176 char *optptr, *argptr = fw_getcmdline(); in pci_clock_check() local
181 optptr = strstr(argptr, "pci_clock="); in pci_clock_check()
182 if (optptr && (optptr == argptr || optptr[-1] == ' ')) in pci_clock_check()