/net/netfilter/ipset/ |
D | ip_set_list_set.c | 55 struct set_elem *e; in list_set_ktest() local 63 list_for_each_entry_rcu(e, &map->members, list) { in list_set_ktest() 64 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest() 67 if (ip_set_match_extensions(set, ext, mext, flags, e)) in list_set_ktest() 79 struct set_elem *e; in list_set_kadd() local 82 list_for_each_entry(e, &map->members, list) { in list_set_kadd() 84 ip_set_timeout_expired(ext_timeout(e, set))) in list_set_kadd() 86 ret = ip_set_add(e->id, skb, par, opt); in list_set_kadd() 99 struct set_elem *e; in list_set_kdel() local 102 list_for_each_entry(e, &map->members, list) { in list_set_kdel() [all …]
|
D | ip_set_hash_netportnet.c | 144 hash_netportnet4_init(struct hash_netportnet4_elem *e) in hash_netportnet4_init() argument 146 e->cidr[0] = HOST_MASK; in hash_netportnet4_init() 147 e->cidr[1] = HOST_MASK; in hash_netportnet4_init() 157 struct hash_netportnet4_elem e = { }; in hash_netportnet4_kadt() local 160 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netportnet4_kadt() 161 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netportnet4_kadt() 163 e.ccmp = (HOST_MASK << (sizeof(e.cidr[0]) * 8)) | HOST_MASK; in hash_netportnet4_kadt() 166 &e.port, &e.proto)) in hash_netportnet4_kadt() 169 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netportnet4_kadt() 170 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1]); in hash_netportnet4_kadt() [all …]
|
D | ip_set_hash_netnet.c | 133 hash_netnet4_init(struct hash_netnet4_elem *e) in hash_netnet4_init() argument 135 e->cidr[0] = HOST_MASK; in hash_netnet4_init() 136 e->cidr[1] = HOST_MASK; in hash_netnet4_init() 146 struct hash_netnet4_elem e = { }; in hash_netnet4_kadt() local 149 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netnet4_kadt() 150 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netnet4_kadt() 152 e.ccmp = (HOST_MASK << (sizeof(e.cidr[0]) * 8)) | HOST_MASK; in hash_netnet4_kadt() 154 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netnet4_kadt() 155 ip4addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1]); in hash_netnet4_kadt() 156 e.ip[0] &= ip_set_netmask(e.cidr[0]); in hash_netnet4_kadt() [all …]
|
D | ip_set_hash_ipportnet.c | 140 struct hash_ipportnet4_elem e = { in hash_ipportnet4_kadt() local 146 e.cidr = HOST_MASK - 1; in hash_ipportnet4_kadt() 149 &e.port, &e.proto)) in hash_ipportnet4_kadt() 152 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportnet4_kadt() 153 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportnet4_kadt() 154 e.ip2 &= ip_set_netmask(e.cidr + 1); in hash_ipportnet4_kadt() 156 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet4_kadt() 165 struct hash_ipportnet4_elem e = { .cidr = HOST_MASK - 1 }; in hash_ipportnet4_uadt() local 198 e.cidr = cidr - 1; in hash_ipportnet4_uadt() 201 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet4_uadt() [all …]
|
D | ip_set_hash_netport.c | 135 struct hash_netport4_elem e = { in hash_netport4_kadt() local 141 e.cidr = HOST_MASK - 1; in hash_netport4_kadt() 144 &e.port, &e.proto)) in hash_netport4_kadt() 147 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netport4_kadt() 148 e.ip &= ip_set_netmask(e.cidr + 1); in hash_netport4_kadt() 150 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport4_kadt() 159 struct hash_netport4_elem e = { .cidr = HOST_MASK - 1 }; in hash_netport4_uadt() local 187 e.cidr = cidr - 1; in hash_netport4_uadt() 190 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport4_uadt() 193 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport4_uadt() [all …]
|
D | ip_set_hash_ipportip.c | 95 struct hash_ipportip4_elem e = { .ip = 0 }; in hash_ipportip4_kadt() local 99 &e.port, &e.proto)) in hash_ipportip4_kadt() 102 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportip4_kadt() 103 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportip4_kadt() 104 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip4_kadt() 113 struct hash_ipportip4_elem e = { .ip = 0 }; in hash_ipportip4_uadt() local 127 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipportip4_uadt() 135 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP2], &e.ip2); in hash_ipportip4_uadt() 139 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt() 142 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip4_uadt() [all …]
|
D | ip_set_hash_ipmac.c | 59 hash_ipmac4_data_list(struct sk_buff *skb, const struct hash_ipmac4_elem *e) in hash_ipmac4_data_list() argument 61 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, e->ip) || in hash_ipmac4_data_list() 62 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac4_data_list() 72 const struct hash_ipmac4_elem *e) in hash_ipmac4_data_next() argument 74 next->ip = e->ip; in hash_ipmac4_data_next() 89 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_kadt() local 97 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac4_kadt() 99 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac4_kadt() 101 if (is_zero_ether_addr(e.ether)) in hash_ipmac4_kadt() 104 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipmac4_kadt() [all …]
|
D | ip_set_hash_netiface.c | 163 struct hash_netiface4_elem e = { in hash_netiface4_kadt() local 170 e.cidr = HOST_MASK; in hash_netiface4_kadt() 172 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netiface4_kadt() 173 e.ip &= ip_set_netmask(e.cidr); in hash_netiface4_kadt() 185 STRLCPY(e.iface, eiface); in hash_netiface4_kadt() 186 e.physdev = 1; in hash_netiface4_kadt() 189 STRLCPY(e.iface, SRCDIR ? IFACE(in) : IFACE(out)); in hash_netiface4_kadt() 192 if (strlen(e.iface) == 0) in hash_netiface4_kadt() 194 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface4_kadt() 203 struct hash_netiface4_elem e = { .cidr = HOST_MASK, .elem = 1 }; in hash_netiface4_uadt() local [all …]
|
D | ip_set_hash_ipport.c | 93 struct hash_ipport4_elem e = { .ip = 0 }; in hash_ipport4_kadt() local 97 &e.port, &e.proto)) in hash_ipport4_kadt() 100 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipport4_kadt() 101 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt() 110 struct hash_ipport4_elem e = { .ip = 0 }; in hash_ipport4_uadt() local 124 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipport4_uadt() 132 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt() 135 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport4_uadt() 136 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipport4_uadt() 138 if (e.proto == 0) in hash_ipport4_uadt() [all …]
|
D | ip_set_hash_net.c | 119 struct hash_net4_elem e = { in hash_net4_kadt() local 124 if (e.cidr == 0) in hash_net4_kadt() 127 e.cidr = HOST_MASK; in hash_net4_kadt() 129 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_net4_kadt() 130 e.ip &= ip_set_netmask(e.cidr); in hash_net4_kadt() 132 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net4_kadt() 141 struct hash_net4_elem e = { .cidr = HOST_MASK }; in hash_net4_uadt() local 162 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_net4_uadt() 163 if (!e.cidr || e.cidr > HOST_MASK) in hash_net4_uadt() 175 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt() [all …]
|
D | ip_set_hash_ipmark.c | 86 struct hash_ipmark4_elem e = { }; in hash_ipmark4_kadt() local 89 e.mark = skb->mark; in hash_ipmark4_kadt() 90 e.mark &= h->markmask; in hash_ipmark4_kadt() 92 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipmark4_kadt() 93 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt() 102 struct hash_ipmark4_elem e = { }; in hash_ipmark4_uadt() local 114 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark4_uadt() 122 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt() 123 e.mark &= h->markmask; in hash_ipmark4_uadt() 124 if (e.mark == 0 && e.ip == 0) in hash_ipmark4_uadt() [all …]
|
D | ip_set_hash_ip.c | 57 hash_ip4_data_list(struct sk_buff *skb, const struct hash_ip4_elem *e) in hash_ip4_data_list() argument 59 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, e->ip)) in hash_ip4_data_list() 68 hash_ip4_data_next(struct hash_ip4_elem *next, const struct hash_ip4_elem *e) in hash_ip4_data_next() argument 70 next->ip = e->ip; in hash_ip4_data_next() 84 struct hash_ip4_elem e = { 0 }; in hash_ip4_kadt() local 93 e.ip = ip; in hash_ip4_kadt() 94 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt() 103 struct hash_ip4_elem e = { 0 }; in hash_ip4_uadt() local 123 e.ip = htonl(ip); in hash_ip4_uadt() 124 if (e.ip == 0) in hash_ip4_uadt() [all …]
|
D | ip_set_bitmap_ipmac.c | 83 bitmap_ipmac_do_test(const struct bitmap_ipmac_adt_elem *e, in bitmap_ipmac_do_test() argument 88 if (!test_bit(e->id, map->members)) in bitmap_ipmac_do_test() 90 elem = get_const_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_test() 91 if (e->add_mac && elem->filled == MAC_FILLED) in bitmap_ipmac_do_test() 92 return ether_addr_equal(e->ether, elem->ether); in bitmap_ipmac_do_test() 117 const struct bitmap_ipmac_adt_elem *e, in bitmap_ipmac_add_timeout() argument 134 if (e->add_mac) in bitmap_ipmac_add_timeout() 143 bitmap_ipmac_do_add(const struct bitmap_ipmac_adt_elem *e, in bitmap_ipmac_do_add() argument 148 elem = get_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_add() 149 if (test_bit(e->id, map->members)) { in bitmap_ipmac_do_add() [all …]
|
D | ip_set_hash_mac.c | 49 hash_mac4_data_list(struct sk_buff *skb, const struct hash_mac4_elem *e) in hash_mac4_data_list() argument 51 if (nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_mac4_data_list() 61 const struct hash_mac4_elem *e) in hash_mac4_data_next() argument 77 struct hash_mac4_elem e = { { .foo[0] = 0, .foo[1] = 0 } }; in hash_mac4_kadt() local 85 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_mac4_kadt() 87 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_mac4_kadt() 89 if (is_zero_ether_addr(e.ether)) in hash_mac4_kadt() 91 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_mac4_kadt() 99 struct hash_mac4_elem e = { { .foo[0] = 0, .foo[1] = 0 } }; in hash_mac4_uadt() local 113 ether_addr_copy(e.ether, nla_data(tb[IPSET_ATTR_ETHER])); in hash_mac4_uadt() [all …]
|
/net/netfilter/ |
D | xt_quota2.c | 137 struct xt_quota_counter *e = PDE_DATA(file_inode(file)); in quota_proc_read() local 141 spin_lock_bh(&e->lock); in quota_proc_read() 142 tmp_size = scnprintf(tmp, sizeof(tmp), "%llu\n", e->quota); in quota_proc_read() 143 spin_unlock_bh(&e->lock); in quota_proc_read() 150 struct xt_quota_counter *e = PDE_DATA(file_inode(file)); in quota_proc_write() local 161 spin_lock_bh(&e->lock); in quota_proc_write() 162 e->quota = simple_strtoull(buf, NULL, 0); in quota_proc_write() 163 spin_unlock_bh(&e->lock); in quota_proc_write() 176 struct xt_quota_counter *e; in q2_new_counter() local 180 size = anon ? offsetof(typeof(*e), list) : sizeof(*e); in q2_new_counter() [all …]
|
D | xt_recent.c | 128 struct recent_entry *e; in recent_entry_lookup() local 136 list_for_each_entry(e, &table->iphash[h], list) in recent_entry_lookup() 137 if (e->family == family && in recent_entry_lookup() 138 memcmp(&e->addr, addrp, sizeof(e->addr)) == 0 && in recent_entry_lookup() 139 (ttl == e->ttl || ttl == 0 || e->ttl == 0)) in recent_entry_lookup() 140 return e; in recent_entry_lookup() 144 static void recent_entry_remove(struct recent_table *t, struct recent_entry *e) in recent_entry_remove() argument 146 list_del(&e->list); in recent_entry_remove() 147 list_del(&e->lru_list); in recent_entry_remove() 148 kfree(e); in recent_entry_remove() [all …]
|
D | nf_conntrack_ecache.c | 53 struct nf_conntrack_ecache *e; in ecache_work_evict_list() local 66 e = nf_ct_ecache_find(ct); in ecache_work_evict_list() 67 if (!e || e->state != NFCT_ECACHE_DESTROY_FAIL) in ecache_work_evict_list() 79 e->state = NFCT_ECACHE_DESTROY_SENT; in ecache_work_evict_list() 133 static int __nf_conntrack_eventmask_report(struct nf_conntrack_ecache *e, in __nf_conntrack_eventmask_report() argument 143 if (!((events | missed) & e->ctmask)) in __nf_conntrack_eventmask_report() 162 e->missed |= events; in __nf_conntrack_eventmask_report() 164 e->missed &= ~missed; in __nf_conntrack_eventmask_report() 173 struct nf_conntrack_ecache *e; in nf_conntrack_eventmask_report() local 181 e = nf_ct_ecache_find(ct); in nf_conntrack_eventmask_report() [all …]
|
D | xt_policy.c | 35 match_xfrm_state(const struct xfrm_state *x, const struct xt_policy_elem *e, in match_xfrm_state() argument 38 #define MATCH_ADDR(x,y,z) (!e->match.x || \ in match_xfrm_state() 39 (xt_addr_cmp(&e->x, &e->y, (const union nf_inet_addr *)(z), family) \ in match_xfrm_state() 40 ^ e->invert.x)) in match_xfrm_state() 41 #define MATCH(x,y) (!e->match.x || ((e->x == (y)) ^ e->invert.x)) in match_xfrm_state() 55 const struct xt_policy_elem *e; in match_policy_in() local 69 e = &info->pol[pos]; in match_policy_in() 71 if (match_xfrm_state(sp->xvec[i], e, family)) { in match_policy_in() 85 const struct xt_policy_elem *e; in match_policy_out() local 98 e = &info->pol[pos]; in match_policy_out() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_est.c | 98 struct ip_vs_estimator *e; in estimation_timer() local 104 list_for_each_entry(e, &ipvs->est_list, list) { in estimation_timer() 105 s = container_of(e, struct ip_vs_stats, est); in estimation_timer() 111 rate = (s->kstats.conns - e->last_conns) << 9; in estimation_timer() 112 e->last_conns = s->kstats.conns; in estimation_timer() 113 e->cps += ((s64)rate - (s64)e->cps) >> 2; in estimation_timer() 115 rate = (s->kstats.inpkts - e->last_inpkts) << 9; in estimation_timer() 116 e->last_inpkts = s->kstats.inpkts; in estimation_timer() 117 e->inpps += ((s64)rate - (s64)e->inpps) >> 2; in estimation_timer() 119 rate = (s->kstats.outpkts - e->last_outpkts) << 9; in estimation_timer() [all …]
|
D | ip_vs_lblcr.c | 102 struct ip_vs_dest_set_elem *e; in ip_vs_dest_set_insert() local 105 list_for_each_entry(e, &set->list, list) { in ip_vs_dest_set_insert() 106 if (e->dest == dest) in ip_vs_dest_set_insert() 111 e = kmalloc(sizeof(*e), GFP_ATOMIC); in ip_vs_dest_set_insert() 112 if (e == NULL) in ip_vs_dest_set_insert() 116 e->dest = dest; in ip_vs_dest_set_insert() 118 list_add_rcu(&e->list, &set->list); in ip_vs_dest_set_insert() 126 struct ip_vs_dest_set_elem *e; in ip_vs_lblcr_elem_rcu_free() local 128 e = container_of(head, struct ip_vs_dest_set_elem, rcu_head); in ip_vs_lblcr_elem_rcu_free() 129 ip_vs_dest_put_and_free(e->dest); in ip_vs_lblcr_elem_rcu_free() [all …]
|
/net/ipv4/netfilter/ |
D | ip_tables.c | 110 static inline bool unconditional(const struct ipt_entry *e) in unconditional() argument 114 return e->target_offset == sizeof(struct ipt_entry) && in unconditional() 115 memcmp(&e->ip, &uncond, sizeof(uncond)) == 0; in unconditional() 120 ipt_get_target_c(const struct ipt_entry *e) in ipt_get_target_c() argument 122 return ipt_get_target((struct ipt_entry *)e); in ipt_get_target_c() 158 get_chainname_rulenum(const struct ipt_entry *s, const struct ipt_entry *e, in get_chainname_rulenum() argument 168 } else if (s == e) { in get_chainname_rulenum() 194 const struct ipt_entry *e) in trace_packet() argument 207 if (get_chainname_rulenum(iter, e, hookname, in trace_packet() 236 struct ipt_entry *e, **jumpstack; in ipt_do_table() local [all …]
|
D | arp_tables.c | 165 arpt_get_target_c(const struct arpt_entry *e) in arpt_get_target_c() argument 167 return arpt_get_target((struct arpt_entry *)e); in arpt_get_target_c() 190 struct arpt_entry *e, **jumpstack; in arpt_do_table() local 214 e = get_entry(table_base, private->hook_entry[hook]); in arpt_do_table() 224 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { in arpt_do_table() 225 e = arpt_next_entry(e); in arpt_do_table() 229 counter = xt_get_this_cpu_counter(&e->counters); in arpt_do_table() 232 t = arpt_get_target_c(e); in arpt_do_table() 246 e = get_entry(table_base, in arpt_do_table() 249 e = jumpstack[--stackidx]; in arpt_do_table() [all …]
|
/net/ipv6/netfilter/ |
D | ip6_tables.c | 135 static inline bool unconditional(const struct ip6t_entry *e) in unconditional() argument 139 return e->target_offset == sizeof(struct ip6t_entry) && in unconditional() 140 memcmp(&e->ipv6, &uncond, sizeof(uncond)) == 0; in unconditional() 144 ip6t_get_target_c(const struct ip6t_entry *e) in ip6t_get_target_c() argument 146 return ip6t_get_target((struct ip6t_entry *)e); in ip6t_get_target_c() 183 get_chainname_rulenum(const struct ip6t_entry *s, const struct ip6t_entry *e, in get_chainname_rulenum() argument 193 } else if (s == e) { in get_chainname_rulenum() 219 const struct ip6t_entry *e) in trace_packet() argument 232 if (get_chainname_rulenum(iter, e, hookname, in trace_packet() 260 struct ip6t_entry *e, **jumpstack; in ip6t_do_table() local [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 131 ebt_basic_match(const struct ebt_entry *e, const struct sk_buff *skb, in ebt_basic_match() argument 143 if (e->bitmask & EBT_802_3) { in ebt_basic_match() 144 if (NF_INVF(e, EBT_IPROTO, eth_proto_is_802_3(ethproto))) in ebt_basic_match() 146 } else if (!(e->bitmask & EBT_NOPROTO) && in ebt_basic_match() 147 NF_INVF(e, EBT_IPROTO, e->ethproto != ethproto)) in ebt_basic_match() 150 if (NF_INVF(e, EBT_IIN, ebt_dev_check(e->in, in))) in ebt_basic_match() 152 if (NF_INVF(e, EBT_IOUT, ebt_dev_check(e->out, out))) in ebt_basic_match() 156 NF_INVF(e, EBT_ILOGICALIN, in ebt_basic_match() 157 ebt_dev_check(e->logical_in, p->br->dev))) in ebt_basic_match() 160 NF_INVF(e, EBT_ILOGICALOUT, in ebt_basic_match() [all …]
|
/net/ipv4/ |
D | ipconfig.c | 673 u8 *e = options; in ic_dhcp_init_options() local 678 memcpy(e, ic_bootp_cookie, 4); /* RFC1048 Magic Cookie */ in ic_dhcp_init_options() 679 e += 4; in ic_dhcp_init_options() 681 *e++ = 53; /* DHCP message type */ in ic_dhcp_init_options() 682 *e++ = 1; in ic_dhcp_init_options() 683 *e++ = mt; in ic_dhcp_init_options() 686 *e++ = 54; /* Server ID (IP address) */ in ic_dhcp_init_options() 687 *e++ = 4; in ic_dhcp_init_options() 688 memcpy(e, &ic_servaddr, 4); in ic_dhcp_init_options() 689 e += 4; in ic_dhcp_init_options() [all …]
|