| /dragonfly/lib/libalias/ |
| HD | alias.c | 345 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 …]
|
| HD | alias_util.c | 130 sum += htons((u_short) pip->ip_p); in TcpChecksum()
|
| /dragonfly/sbin/natd/ |
| HD | icmp.c | 61 if (failedDgram->ip_p == IPPROTO_ICMP) in SendNeedFragIcmp() 101 ip->ip_p = IPPROTO_ICMP; in SendNeedFragIcmp()
|
| HD | natd.c | 490 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/ |
| HD | udp.c | 88 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/ |
| HD | ip_fw3_nat.c | 201 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/ |
| HD | slcompress.c | 406 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/ |
| HD | slcompress.c | 407 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()
|
| HD | tcpmss.c | 162 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check()
|
| HD | vjcomp.c | 83 if (*proto == PROTO_IP && pip->ip_p == IPPROTO_TCP && in vj_LayerPush()
|
| /dragonfly/sys/netinet/ |
| HD | ip_gre.c | 105 proto = (mtod(m, struct ip *))->ip_p; in gre_input() 230 mip->mi.ip_p = (ntohs(mip->mh.proto) >> 8); in gre_mobile_input()
|
| HD | ip_icmp.c | 169 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()
|
| HD | ip_demux.c | 217 switch (ip->ip_p) { in ip_lengthcheck() 310 switch (ip->ip_p) { in ip_hashfn()
|
| HD | ip.h | 77 u_char ip_p; /* protocol */ member
|
| /dragonfly/usr.sbin/vknetd/ |
| HD | filter.c | 70 switch(ip->ip_p) { in filter_ok()
|
| /dragonfly/sys/net/ipfw3_basic/ |
| HD | ip_fw3_state.c | 166 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/ |
| HD | traceroute.c | 545 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/ |
| HD | ip.h | 64 nd_uint8_t ip_p; /* protocol */ member
|
| HD | print-icmp.c | 352 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()
|
| HD | print-ip.c | 386 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/ |
| HD | if_gre.h | 95 #define gi_pr gi_i.ip_p
|
| /dragonfly/tools/tools/net80211/w00t/redir/ |
| HD | buddy.c | 66 if (ih->ip_p != 0) in handle_data()
|
| /dragonfly/sbin/ping/ |
| HD | ping.c | 578 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/ |
| HD | ng_vjc.c | 425 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/ |
| HD | ng_vjc.c | 417 if (ip->ip_p == IPPROTO_TCP) { in ng_vjc_rcvdata() 600 if (!knownTCP && ip->ip_p != IPPROTO_TCP) in ng_vjc_pulluphdrs()
|