/src/sys/netinet/ |
in_l2tp.c | 92 struct ip iphdr; /* capsule IP header, host byte ordered */ local in function:in_l2tp_output 130 memset(&iphdr, 0, sizeof(iphdr)); 131 iphdr.ip_src = sin_src->sin_addr; 132 iphdr.ip_dst = sin_dst->sin_addr; 133 iphdr.ip_p = IPPROTO_L2TP; 135 iphdr.ip_ttl = ip_l2tp_ttl; 137 iphdr.ip_len = sizeof(struct ip); 139 iphdr.ip_len += sizeof(uint32_t); 142 iphdr.ip_len += var->lv_peer_cookie_len [all...] |
in_gif.c | 90 struct ip iphdr; /* capsule IP header, host byte ordered */ local in function:in_gif_output 148 memset(&iphdr, 0, sizeof(iphdr)); 149 iphdr.ip_src = sin_src->sin_addr; 152 iphdr.ip_dst = sin_dst->sin_addr; 157 iphdr.ip_p = proto; 159 iphdr.ip_ttl = ip_gif_ttl; 160 iphdr.ip_len = htons(m->m_pkthdr.len + sizeof(struct ip)); 162 ip_ecn_ingress(ECN_ALLOWED, &iphdr.ip_tos, &tos); 164 ip_ecn_ingress(ECN_NOCARE, &iphdr.ip_tos, &tos) [all...] |
/src/sys/net/ |
if_mpls.c | 605 struct ip iphdr; local in function:mpls_label_inet 613 m_copydata(m, offset, sizeof(struct ip), &iphdr); 617 ms->shim.ttl = iphdr.ip_ttl; 621 ms->shim.exp = ((u_int8_t)iphdr.ip_tos) >> 5;
|
if_ppp.c | 1452 u_char *iphdr; local in function:ppp_inproc 1555 TYPE_COMPRESSED_TCP, sc->sc_comp, &iphdr, &hlen); 1585 bcopy(iphdr, cp + PPP_HDRLEN, hlen); 1610 TYPE_UNCOMPRESSED_TCP, sc->sc_comp, &iphdr, &hlen);
|
/src/usr.sbin/npf/npftest/libnpftest/ |
npf_mbuf_subr.c | 171 struct ip *iphdr; local in function:mbuf_construct 176 iphdr = mtod(m, struct ip *); 178 iphdr->ip_v = IPVERSION; 179 iphdr->ip_hl = sizeof(struct ip) >> 2; 180 iphdr->ip_off = 0; 181 iphdr->ip_ttl = 64; 182 iphdr->ip_p = proto; 185 l4data = (void *)(iphdr + 1); 187 iphdr->ip_len = htons(size); 224 struct ip *iphdr; local in function:mbuf_return_hdrs 248 struct ip *iphdr = mtod(m, struct ip *); local in function:mbuf_icmp_append [all...] |