Home
last modified time | relevance | path

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

/linux-2.4.37.9/net/ipv4/
Dip_options.c84 int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb) in ip_options_echo() argument
92 memset(dopt, 0, sizeof(struct ip_options)); in ip_options_echo()
94 dopt->is_data = 1; in ip_options_echo()
99 dopt->optlen = 0; in ip_options_echo()
104 dptr = dopt->__data; in ip_options_echo()
114 dopt->rr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()
120 dopt->rr_needaddr = 1; in ip_options_echo()
123 dopt->optlen += optlen; in ip_options_echo()
128 dopt->ts = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()
134 dopt->ts_needaddr = 1; in ip_options_echo()
[all …]
Dtcp_ipv4.c1352 struct ip_options *dopt = NULL; in tcp_v4_save_options() local
1356 dopt = kmalloc(opt_size, GFP_ATOMIC); in tcp_v4_save_options()
1357 if (dopt) { in tcp_v4_save_options()
1358 if (ip_options_echo(dopt, skb)) { in tcp_v4_save_options()
1359 kfree(dopt); in tcp_v4_save_options()
1360 dopt = NULL; in tcp_v4_save_options()
1364 return dopt; in tcp_v4_save_options()
/linux-2.4.37.9/include/net/
Dip.h258 extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb);