Home
last modified time | relevance | path

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

/linux-2.6.39/net/ipv4/
Dip_options.c214 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment() local
220 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() local
261 optptr = (unsigned char *)&(ip_hdr(skb)[1]); in ip_options_compile()
263 optptr = opt->__data; in ip_options_compile()
[all …]
Dah4.c78 unsigned char * optptr = (unsigned char*)(iph+1); in ip_clear_mutable_options() local
83 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()