Home
last modified time | relevance | path

Searched refs:ip_p (Results 1 – 25 of 68) sorted by relevance

123

/dragonfly/lib/libalias/
HDalias.c345 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasIn2()
349 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasIn2()
353 else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasIn2()
363 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) in IcmpAliasIn2()
395 else if (ip->ip_p == IPPROTO_ICMP) in IcmpAliasIn2()
537 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasOut2()
541 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasOut2()
545 else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasOut2()
555 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) in IcmpAliasOut2()
588 else if (ip->ip_p == IPPROTO_ICMP) in IcmpAliasOut2()
[all …]
HDalias_util.c130 sum += htons((u_short) pip->ip_p); in TcpChecksum()
/dragonfly/sbin/natd/
HDicmp.c61 if (failedDgram->ip_p == IPPROTO_ICMP) in SendNeedFragIcmp()
101 ip->ip_p = IPPROTO_ICMP; in SendNeedFragIcmp()
HDnatd.c490 switch (ip->ip_p) { in DoAliasing()
504 printf("[%d] ", ip->ip_p); in DoAliasing()
634 switch (ip->ip_p) { in FormatPacket()
663 sprintf(buf, "[%d] %s -> %s ", ip->ip_p, src, dst); in FormatPacket()
/dragonfly/stand/lib/
HDudp.c88 ip->ip_p = IPPROTO_UDP; /* char */ in sendudp()
174 ip->ip_p != IPPROTO_UDP) { /* half char */ in readudp()
177 … printf("readudp: IP version or not UDP. ip_v=%d ip_p=%d\n", ip->ip_v, ip->ip_p); in readudp()
/dragonfly/sys/net/ipfw3_nat/
HDip_fw3_nat.c201 switch (ip->ip_p) { in ip_fw3_nat()
219 panic("ipfw3: unsupported proto %u", ip->ip_p); in ip_fw3_nat()
228 switch (ip->ip_p) { in ip_fw3_nat()
254 panic("ipfw3: unsupported proto %u", ip->ip_p); in ip_fw3_nat()
267 switch (ip->ip_p) { in ip_fw3_nat()
334 if (ip->ip_p == IPPROTO_ICMP) { in ip_fw3_nat()
361 if (ip->ip_p != IPPROTO_ICMP) { in ip_fw3_nat()
374 ip->ip_dst.s_addr, htons(dlen + ip->ip_p)); in ip_fw3_nat()
406 msg->proto = ip->ip_p; in ip_fw3_nat()
422 if (ip->ip_p == IPPROTO_TCP) { in ip_fw3_nat()
/dragonfly/sys/net/ppp_layer/
HDslcompress.c406 ip->ip_p = cs->cs_id; in sl_compress_tcp()
472 if (ip->ip_p >= MAX_STATES) in sl_uncompress_tcp_core()
474 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp_core()
476 ip->ip_p = IPPROTO_TCP; in sl_uncompress_tcp_core()
/dragonfly/usr.sbin/ppp/
HDslcompress.c407 ip->ip_p = cs->cs_id; in sl_compress_tcp()
428 if (ip->ip_p > max_state) in sl_uncompress_tcp()
430 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp()
432 ip->ip_p = IPPROTO_TCP; in sl_uncompress_tcp()
HDtcpmss.c162 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check()
HDvjcomp.c83 if (*proto == PROTO_IP && pip->ip_p == IPPROTO_TCP && in vj_LayerPush()
/dragonfly/sys/netinet/
HDip_gre.c105 proto = (mtod(m, struct ip *))->ip_p; in gre_input()
230 mip->mi.ip_p = (ntohs(mip->mh.proto) >> 8); in gre_mobile_input()
HDip_icmp.c169 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT && in icmp_error()
229 nip->ip_p = IPPROTO_ICMP; in icmp_error()
312 so_pr_ctlinput_direct(&inetsw[ip_protox[icp->icmp_ip.ip_p]], in icmp_mtudisc()
374 so_pr_ctlinput_direct(&inetsw[ip_protox[icp->icmp_ip.ip_p]], in icmp_ctlinput()
716 kprintf("deliver to protocol %d\n", icp->icmp_ip.ip_p); in icmp_input()
735 pr = &inetsw[ip_protox[icp->icmp_ip.ip_p]]; in icmp_input()
HDip_demux.c217 switch (ip->ip_p) { in ip_lengthcheck()
310 switch (ip->ip_p) { in ip_hashfn()
HDip.h77 u_char ip_p; /* protocol */ member
/dragonfly/usr.sbin/vknetd/
HDfilter.c70 switch(ip->ip_p) { in filter_ok()
/dragonfly/sys/net/ipfw3_basic/
HDip_fw3_state.c166 switch (ip->ip_p) { in check_check_state()
183 switch (ip->ip_p) { in check_check_state()
250 switch (ip->ip_p) { in check_keep_state()
270 switch (ip->ip_p) { in check_keep_state()
/dragonfly/usr.sbin/traceroute/
HDtraceroute.c545 ip->ip_p = proto; in main()
1049 if (hlen + 8 <= cc && hip->ip_p == IPPROTO_ICMP && in packet_ok()
1057 if (hlen + 12 <= cc && hip->ip_p == proto && in packet_ok()
1067 if (hip->ip_p == proto) in packet_ok()
/dragonfly/contrib/tcpdump/
HDip.h64 nd_uint8_t ip_p; /* protocol */ member
HDprint-icmp.c352 GET_U_1(dp->icmp_ip.ip_p)); in icmp_print()
356 ND_TCHECK_1(dp->icmp_ip.ip_p); in icmp_print()
361 ip_proto = GET_U_1(oip->ip_p); in icmp_print()
HDprint-ip.c386 ip_proto = GET_U_1(ip->ip_p); in ip_print()
466 uint8_t nh = GET_U_1(ip->ip_p); in ip_print()
/dragonfly/sys/net/gre/
HDif_gre.h95 #define gi_pr gi_i.ip_p
/dragonfly/tools/tools/net80211/w00t/redir/
HDbuddy.c66 if (ih->ip_p != 0) in handle_data()
/dragonfly/sbin/ping/
HDping.c578 ip->ip_p = IPPROTO_ICMP; in main()
1097 (oip->ip_p == IPPROTO_ICMP) && in pr_pack()
1507 printf(" %02x %02x %04x", ip->ip_ttl, ip->ip_p, ntohs(ip->ip_sum)); in pr_iph()
1551 if (ip->ip_p == 6) in pr_retip()
1554 else if (ip->ip_p == 17) in pr_retip()
/dragonfly/sys/netgraph/vjc/
HDng_vjc.c425 if (ip->ip_p == IPPROTO_TCP) { in ng_vjc_rcvdata()
604 if (!knownTCP && ip->ip_p != IPPROTO_TCP) in ng_vjc_pulluphdrs()
/dragonfly/sys/netgraph7/vjc/
HDng_vjc.c417 if (ip->ip_p == IPPROTO_TCP) { in ng_vjc_rcvdata()
600 if (!knownTCP && ip->ip_p != IPPROTO_TCP) in ng_vjc_pulluphdrs()

123