Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 143) sorted by relevance

123456

/linux-2.4.37.9/net/ipv4/
Dip_options.c36 void ip_options_build(struct sk_buff * skb, struct ip_options * opt, in ip_options_build() argument
41 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build()
42 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build()
43 opt = &(IPCB(skb)->opt); in ip_options_build()
44 opt->is_data = 0; in ip_options_build()
46 if (opt->srr) in ip_options_build()
47 memcpy(iph+opt->srr+iph[opt->srr+1]-4, &daddr, 4); in ip_options_build()
50 if (opt->rr_needaddr) in ip_options_build()
51 ip_rt_get_source(iph+opt->rr+iph[opt->rr+2]-5, rt); in ip_options_build()
52 if (opt->ts_needaddr) in ip_options_build()
[all …]
Dsyncookies.c112 struct ip_options *opt) in cookie_v4_check() argument
144 req->af.v4_req.opt = NULL; in cookie_v4_check()
149 if (opt && opt->optlen) { in cookie_v4_check()
150 int opt_size = sizeof(struct ip_options) + opt->optlen; in cookie_v4_check()
152 req->af.v4_req.opt = kmalloc(opt_size, GFP_ATOMIC); in cookie_v4_check()
153 if (req->af.v4_req.opt) { in cookie_v4_check()
154 if (ip_options_echo(req->af.v4_req.opt, skb)) { in cookie_v4_check()
155 kfree(req->af.v4_req.opt); in cookie_v4_check()
156 req->af.v4_req.opt = NULL; in cookie_v4_check()
173 opt && in cookie_v4_check()
[all …]
Dip_output.c123 u32 saddr, u32 daddr, struct ip_options *opt) in ip_build_and_send_pkt() argument
129 if (opt) in ip_build_and_send_pkt()
130 iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr) + opt->optlen); in ip_build_and_send_pkt()
149 if (opt && opt->optlen) { in ip_build_and_send_pkt()
150 iph->ihl += opt->optlen>>2; in ip_build_and_send_pkt()
151 ip_options_build(skb, opt, daddr, rt, 0); in ip_build_and_send_pkt()
350 struct ip_options *opt = sk->protinfo.af_inet.opt; in ip_queue_xmit() local
368 if(opt && opt->srr) in ip_queue_xmit()
369 daddr = opt->faddr; in ip_queue_xmit()
385 if (opt && opt->is_strictroute && rt->rt_dst != rt->rt_gateway) in ip_queue_xmit()
[all …]
Dip_forward.c46 struct ip_options * opt = &(IPCB(skb)->opt); in ip_forward_finish() local
50 if (opt->optlen == 0) { in ip_forward_finish()
78 struct ip_options * opt = &(IPCB(skb)->opt); in ip_forward() local
81 if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) in ip_forward()
101 if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) in ip_forward()
117 if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr) in ip_forward()
/linux-2.4.37.9/net/ipv6/
Dexthdrs.c170 struct inet6_skb_parm *opt = (struct inet6_skb_parm *)skb->cb; in ipv6_dest_opt() local
178 opt->dst1 = skb->h.raw - skb->nh.raw; in ipv6_dest_opt()
182 return opt->dst1; in ipv6_dest_opt()
205 struct inet6_skb_parm *opt = (struct inet6_skb_parm *)skb->cb; in ipv6_routing_header() local
231 opt->srcrt = skb->h.raw - skb->nh.raw; in ipv6_routing_header()
233 opt->dst0 = opt->dst1; in ipv6_routing_header()
234 opt->dst1 = 0; in ipv6_routing_header()
269 opt = (struct inet6_skb_parm *)skb2->cb; in ipv6_routing_header()
355 struct ipv6_txoptions *opt; in ipv6_invert_rthdr() local
364 opt = sock_kmalloc(sk, sizeof(*opt) + hdrlen, GFP_ATOMIC); in ipv6_invert_rthdr()
[all …]
Ddatagram.c145 struct inet6_skb_parm *opt = (struct inet6_skb_parm *) skb->cb; in ipv6_recv_error() local
146 sin->sin6_scope_id = opt->iif; in ipv6_recv_error()
167 struct inet6_skb_parm *opt = (struct inet6_skb_parm *) skb->cb; in ipv6_recv_error() local
168 sin->sin6_scope_id = opt->iif; in ipv6_recv_error()
208 struct inet6_skb_parm *opt = (struct inet6_skb_parm *) skb->cb; in datagram_recv_ctl() local
213 src_info.ipi6_ifindex = opt->iif; in datagram_recv_ctl()
227 if (np->rxopt.bits.hopopts && opt->hop) { in datagram_recv_ctl()
228 u8 *ptr = skb->nh.raw + opt->hop; in datagram_recv_ctl()
231 if (np->rxopt.bits.dstopts && opt->dst0) { in datagram_recv_ctl()
232 u8 *ptr = skb->nh.raw + opt->dst0; in datagram_recv_ctl()
[all …]
Dip6_output.c188 struct ipv6_txoptions *opt) in ip6_xmit() argument
198 if (opt) { in ip6_xmit()
204 head_room = opt->opt_nflen + opt->opt_flen; in ip6_xmit()
217 if (opt->opt_flen) in ip6_xmit()
218 ipv6_push_frag_opts(skb, opt, &proto); in ip6_xmit()
219 if (opt->opt_nflen) in ip6_xmit()
220 ipv6_push_nfrag_opts(skb, opt, &proto, &first_hop); in ip6_xmit()
328 struct flowi *fl, struct ipv6_txoptions *opt, in ip6_frag_xmit() argument
359 if (opt) { in ip6_frag_xmit()
360 unfrag_len += opt->opt_nflen; in ip6_frag_xmit()
[all …]
Dipv6_sockglue.c157 struct ipv6_txoptions *opt; in ipv6_setsockopt() local
199 opt = xchg(&np->opt, NULL); in ipv6_setsockopt()
200 if (opt) in ipv6_setsockopt()
201 sock_kfree_s(sk, opt, opt->tot_len); in ipv6_setsockopt()
262 struct ipv6_txoptions *opt = NULL; in ipv6_setsockopt() local
280 opt = sock_kmalloc(sk, sizeof(*opt) + optlen, GFP_KERNEL); in ipv6_setsockopt()
282 if (opt == NULL) in ipv6_setsockopt()
285 memset(opt, 0, sizeof(*opt)); in ipv6_setsockopt()
286 opt->tot_len = sizeof(*opt) + optlen; in ipv6_setsockopt()
288 if (copy_from_user(opt+1, optval, optlen)) in ipv6_setsockopt()
[all …]
Draw.c117 struct raw6_opt *opt; in icmpv6_filter() local
119 opt = &sk->tp_pinfo.tp_raw; in icmpv6_filter()
121 __u32 *data = &opt->filter.data[0]; in icmpv6_filter()
249 struct inet6_skb_parm *opt, in rawv6_err() argument
401 struct inet6_skb_parm *opt = (struct inet6_skb_parm *) skb->cb; in rawv6_recvmsg() local
402 sin6->sin6_scope_id = opt->iif; in rawv6_recvmsg()
475 struct raw6_opt *opt; in rawv6_frag_cksum() local
479 opt = &sk->tp_pinfo.tp_raw; in rawv6_frag_cksum()
489 if (opt->offset + 1 < len) { in rawv6_frag_cksum()
492 csum = (__u16 *) (buff + opt->offset); in rawv6_frag_cksum()
[all …]
Dip6_flowlabel.c88 if (fl->opt) in fl_free()
89 kfree(fl->opt); in fl_free()
101 if (fl->opt && fl->share == IPV6_FL_S_EXCL) { in fl_release()
102 struct ipv6_txoptions *opt = fl->opt; in fl_release() local
103 fl->opt = NULL; in fl_release()
104 kfree(opt); in fl_release()
223 struct ipv6_txoptions * fl_opt = fl->opt; in fl6_merge_options()
299 fl->opt = kmalloc(sizeof(*fl->opt) + olen, GFP_KERNEL); in fl_create()
300 if (fl->opt == NULL) in fl_create()
303 memset(fl->opt, 0, sizeof(*fl->opt)); in fl_create()
[all …]
/linux-2.4.37.9/drivers/net/e1000/
De1000_param.c234 e1000_validate_option(int *value, struct e1000_option *opt, in e1000_validate_option() argument
238 *value = opt->def; in e1000_validate_option()
242 switch (opt->type) { in e1000_validate_option()
246 DPRINTK(PROBE, INFO, "%s Enabled\n", opt->name); in e1000_validate_option()
249 DPRINTK(PROBE, INFO, "%s Disabled\n", opt->name); in e1000_validate_option()
254 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
256 "%s set to %i\n", opt->name, *value); in e1000_validate_option()
264 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
265 ent = &opt->arg.l.p[i]; in e1000_validate_option()
279 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_TCPMSS.c30 optlen(const u_int8_t *opt, unsigned int offset) in optlen() argument
33 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0) return 1; in optlen()
34 else return opt[offset+1]; in optlen()
50 u_int8_t *opt; in ipt_tcpmss_target() local
99 opt = (u_int8_t *)tcph; in ipt_tcpmss_target()
100 for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)){ in ipt_tcpmss_target()
101 if ((opt[i] == TCPOPT_MSS) && in ipt_tcpmss_target()
103 (opt[i+1] == TCPOLEN_MSS)) { in ipt_tcpmss_target()
106 oldmss = (opt[i+2] << 8) | opt[i+3]; in ipt_tcpmss_target()
112 opt[i+2] = (newmss & 0xff00) >> 8; in ipt_tcpmss_target()
[all …]
Dipt_unclean.c290 u_int8_t *opt = (u_int8_t *)tcph; in check_tcp() local
358 switch (opt[i]) { in check_tcp()
370 opt[i]); in check_tcp()
376 opt[i]); in check_tcp()
380 else if (opt[i+1] == 0) { in check_tcp()
382 opt[i]); in check_tcp()
386 else if (&opt[i] + opt[i+1] > endhdr) { in check_tcp()
388 (unsigned int) opt[i], i); in check_tcp()
392 i += opt[i+1]; in check_tcp()
404 u_int8_t *opt = (u_int8_t *)iph; in check_ip() local
[all …]
Dipt_tcpmss.c20 const u_int8_t *opt = (u_int8_t *)tcp; in mssoption_match() local
29 if ((opt[i] == TCPOPT_MSS) in mssoption_match()
31 && (opt[i+1] == TCPOLEN_MSS)) { in mssoption_match()
34 mssval = (opt[i+2] << 8) | opt[i+3]; in mssoption_match()
38 if (opt[i] < 2) i++; in mssoption_match()
39 else i += opt[i+1]?:1; in mssoption_match()
/linux-2.4.37.9/drivers/scsi/
Dmac_esp.c170 long opt; in mac_esp_setup() local
174 opt = simple_strtol( this_opt, NULL, 0 ); in mac_esp_setup()
176 if (opt >= 0 && opt <= 2) in mac_esp_setup()
177 setup_num_esps = opt; in mac_esp_setup()
178 else if (opt > 2) in mac_esp_setup()
179 printk( "mac_esp_setup: invalid number of hosts %ld !\n", opt ); in mac_esp_setup()
184 opt = simple_strtol( this_opt, NULL, 0 ); in mac_esp_setup()
186 if (opt > 0) in mac_esp_setup()
187 setup_disconnect = opt; in mac_esp_setup()
192 opt = simple_strtol( this_opt, NULL, 0 ); in mac_esp_setup()
[all …]
/linux-2.4.37.9/fs/intermezzo/
Dsysctl.c139 int dosetopt(int minor, struct psdev_opt *opt) in dosetopt() argument
142 int newval = opt->optval; in dosetopt()
146 switch(opt->optname) { in dosetopt()
200 minor, opt->optname); in dosetopt()
209 int dogetopt(int minor, struct psdev_opt *opt) in dogetopt() argument
215 switch(opt->optname) { in dogetopt()
218 opt->optval = izo_channels[minor].uc_timeout; in dogetopt()
222 opt->optval = izo_channels[minor].uc_hard; in dogetopt()
226 opt->optval = izo_channels[minor].uc_no_filter; in dogetopt()
230 opt->optval = izo_channels[minor].uc_no_journal; in dogetopt()
[all …]
Dsuper.c59 static char *opt_read(const char *opt, char *data) in opt_read() argument
64 CDEBUG(D_SUPER, "option: %s, data %s\n", opt, data); in opt_read()
65 if ( strncmp(opt, data, strlen(opt)) ) in opt_read()
79 CDEBUG(D_SUPER, "Assigned option: %s, value %s\n", opt, retval); in opt_read()
83 static void opt_store(char **dst, char *opt) in opt_store() argument
90 *dst = opt; in opt_store()
141 char *opt; in presto_options() local
144 if ( (opt = opt_read("fileset", this_char)) ) { in presto_options()
145 opt_store(fileset, opt); in presto_options()
148 if ( (opt = opt_read("cache_type", this_char)) ) { in presto_options()
[all …]
/linux-2.4.37.9/net/sched/
Dsch_red.c359 static int red_change(struct Qdisc *sch, struct rtattr *opt) in red_change() argument
365 if (opt == NULL || in red_change()
366 rtattr_parse(tb, TCA_RED_STAB, RTA_DATA(opt), RTA_PAYLOAD(opt)) || in red_change()
393 static int red_init(struct Qdisc* sch, struct rtattr *opt) in red_init() argument
399 if ((err = red_change(sch, opt)) != 0) { in red_init()
420 struct tc_red_qopt opt; in red_dump() local
424 opt.limit = q->limit; in red_dump()
425 opt.qth_min = q->qth_min>>q->Wlog; in red_dump()
426 opt.qth_max = q->qth_max>>q->Wlog; in red_dump()
427 opt.Wlog = q->Wlog; in red_dump()
[all …]
Dpolice.c225 struct tc_police opt; in tcf_police_dump() local
227 opt.index = p->index; in tcf_police_dump()
228 opt.action = p->action; in tcf_police_dump()
229 opt.mtu = p->mtu; in tcf_police_dump()
230 opt.burst = p->burst; in tcf_police_dump()
232 opt.rate = p->R_tab->rate; in tcf_police_dump()
234 memset(&opt.rate, 0, sizeof(opt.rate)); in tcf_police_dump()
236 opt.peakrate = p->P_tab->rate; in tcf_police_dump()
238 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); in tcf_police_dump()
239 RTA_PUT(skb, TCA_POLICE_TBF, sizeof(opt), &opt); in tcf_police_dump()
Dsch_fifo.c138 static int fifo_init(struct Qdisc *sch, struct rtattr *opt) in fifo_init() argument
142 if (opt == NULL) { in fifo_init()
150 struct tc_fifo_qopt *ctl = RTA_DATA(opt); in fifo_init()
151 if (opt->rta_len < RTA_LENGTH(sizeof(*ctl))) in fifo_init()
162 struct tc_fifo_qopt opt; in fifo_dump() local
164 opt.limit = q->limit; in fifo_dump()
165 RTA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); in fifo_dump()
Dsch_tbf.c300 static int tbf_change(struct Qdisc* sch, struct rtattr *opt) in tbf_change() argument
311 if (rtattr_parse(tb, TCA_TBF_PTAB, RTA_DATA(opt), RTA_PAYLOAD(opt)) || in tbf_change()
367 static int tbf_init(struct Qdisc* sch, struct rtattr *opt) in tbf_init() argument
372 if (opt == NULL) in tbf_init()
384 if ((err = tbf_change(sch, opt)) != 0) { in tbf_init()
412 struct tc_tbf_qopt opt; in tbf_dump() local
417 opt.limit = q->limit; in tbf_dump()
418 opt.rate = q->R_tab->rate; in tbf_dump()
420 opt.peakrate = q->P_tab->rate; in tbf_dump()
422 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); in tbf_dump()
[all …]
Dsch_csz.c761 static int csz_init(struct Qdisc *sch, struct rtattr *opt) in csz_init() argument
768 rtattr_parse(tb, TCA_CSZ_PTAB, RTA_DATA(opt), RTA_PAYLOAD(opt)); in csz_init()
809 struct tc_csz_qopt opt; in csz_dump() local
814 opt.flows = CSZ_FLOWS; in csz_dump()
815 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX+1); in csz_dump()
816 RTA_PUT(skb, TCA_CSZ_PARMS, sizeof(opt), &opt); in csz_dump()
867 struct rtattr *opt = tca[TCA_OPTIONS-1]; in csz_change() local
871 rtattr_parse(tb, TCA_CSZ_PTAB, RTA_DATA(opt), RTA_PAYLOAD(opt)); in csz_change()
943 struct tc_csz_copt opt; in csz_dump_class() local
961 opt.limit = f->limit; in csz_dump_class()
[all …]
Dsch_gred.c324 static int gred_change(struct Qdisc *sch, struct rtattr *opt) in gred_change() argument
334 if (opt == NULL || in gred_change()
335 rtattr_parse(tb, TCA_GRED_STAB, RTA_DATA(opt), RTA_PAYLOAD(opt)) ) in gred_change()
339 rtattr_parse(tb2, TCA_GRED_DPS, RTA_DATA(opt), in gred_change()
340 RTA_PAYLOAD(opt)); in gred_change()
471 static int gred_init(struct Qdisc *sch, struct rtattr *opt) in gred_init() argument
478 if (opt == NULL || in gred_init()
479 rtattr_parse(tb, TCA_GRED_STAB, RTA_DATA(opt), RTA_PAYLOAD(opt)) ) in gred_init()
483 rtattr_parse(tb2, TCA_GRED_DPS, RTA_DATA(opt),RTA_PAYLOAD(opt)); in gred_init()
505 struct tc_gred_qopt *opt = NULL ; in gred_dump() local
[all …]
/linux-2.4.37.9/fs/smbfs/
Dioctl.c29 struct smb_conn_opt opt; in smb_ioctl() local
49 if (!copy_from_user(&opt, (void *)arg, sizeof(opt))) in smb_ioctl()
50 result = smb_newconn(server, &opt); in smb_ioctl()
/linux-2.4.37.9/drivers/net/tokenring/
Dolympic.c698 u8 *opt ; in olympic_open() local
700 opt = (u8 *)(olympic_priv->olympic_lap + olympic_priv->olympic_parms_addr) ; in olympic_open()
715 readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)), in olympic_open()
716 readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+1), in olympic_open()
717 readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+2), in olympic_open()
718 readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+3), in olympic_open()
719 readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+4), in olympic_open()
720 readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+5)); in olympic_open()
1651 u8 *opt = (u8 *)(olympic_priv->olympic_lap + olympic_priv->olympic_parms_addr) ; in olympic_proc_info() local
1688 readb(opt+offsetof(struct olympic_parameters_table, phys_addr)), in olympic_proc_info()
[all …]

123456