| /freebsd-9-stable/sys/netinet/libalias/ |
| D | alias.c | 293 IcmpAliasIn1(struct libalias *la, struct ip *pip) in IcmpAliasIn1() argument 304 ic = (struct icmp *)ip_next(pip); in IcmpAliasIn1() 307 lnk = FindIcmpIn(la, pip->ip_src, pip->ip_dst, ic->icmp_id, 1); in IcmpAliasIn1() 327 DifferentialChecksum(&pip->ip_sum, in IcmpAliasIn1() 328 &original_address, &pip->ip_dst, 2); in IcmpAliasIn1() 329 pip->ip_dst = original_address; in IcmpAliasIn1() 338 IcmpAliasIn2(struct libalias *la, struct ip *pip) in IcmpAliasIn2() argument 352 ic = (struct icmp *)ip_next(pip); in IcmpAliasIn2() 396 DifferentialChecksum(&pip->ip_sum, in IcmpAliasIn2() 397 &original_address, &pip->ip_dst, 2); in IcmpAliasIn2() [all …]
|
| D | alias_pptp.c | 101 protohandlerin(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandlerin() argument 104 AliasHandlePptpIn(la, pip, ah->lnk); in protohandlerin() 109 protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandlerout() argument 112 AliasHandlePptpOut(la, pip, ah->lnk); in protohandlerout() 117 protohandlergrein(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandlergrein() argument 121 AliasHandlePptpGreIn(la, pip) == 0) in protohandlergrein() 127 protohandlergreout(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandlergreout() argument 130 if (AliasHandlePptpGreOut(la, pip) == 0) in protohandlergreout() 301 struct ip *pip, /* IP packet to examine/patch */ in AliasHandlePptpOut() argument 311 if ((cptr = AliasVerifyPptp(pip, &ctl_type)) == NULL) in AliasHandlePptpOut() [all …]
|
| D | alias_smedia.c | 153 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler() argument 157 FindRtspOut(la, pip->ip_src, pip->ip_dst, in protohandler() 159 else AliasHandleRtspOut(la, pip, ah->lnk, ah->maxpktsize); in protohandler() 235 alias_rtsp_out(struct libalias *la, struct ip *pip, in alias_rtsp_out() argument 253 tc = (struct tcphdr *)ip_next(pip); in alias_rtsp_out() 254 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out() 255 tlen = ntohs(pip->ip_len); in alias_rtsp_out() 323 FindAliasAddress(la, pip->ip_src), in alias_rtsp_out() 407 tc = (struct tcphdr *)ip_next(pip); in alias_rtsp_out() 409 AddSeq(lnk, delta + new_dlen - dlen, pip->ip_hl, pip->ip_len, in alias_rtsp_out() [all …]
|
| D | alias_ftp.c | 134 protohandler_out(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler_out() argument 137 AliasHandleFtpOut(la, pip, ah->lnk, ah->maxpktsize); in protohandler_out() 143 protohandler_in(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler_in() argument 146 AliasHandleFtpIn(la, pip, ah->lnk); in protohandler_in() 224 struct ip *pip, /* IP packet to examine/patch */ in AliasHandleFtpOut() argument 235 tc = (struct tcphdr *)ip_next(pip); in AliasHandleFtpOut() 236 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut() 237 tlen = ntohs(pip->ip_len); in AliasHandleFtpOut() 241 sptr = (char *)pip; in AliasHandleFtpOut() 268 la->true_addr.s_addr = pip->ip_src.s_addr; in AliasHandleFtpOut() [all …]
|
| D | alias_proxy.c | 291 struct ip *pip, in ProxyEncodeTcpStream() argument 299 tc = (struct tcphdr *)ip_next(pip); in ProxyEncodeTcpStream() 323 if ((int)(ntohs(pip->ip_len) + strlen(buffer)) > maxpacketsize) in ProxyEncodeTcpStream() 332 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream() 333 dlen = ntohs(pip->ip_len) - hlen; in ProxyEncodeTcpStream() 340 p = (char *)pip; in ProxyEncodeTcpStream() 352 tc = (struct tcphdr *)ip_next(pip); in ProxyEncodeTcpStream() 354 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq, in ProxyEncodeTcpStream() 362 accumulate = pip->ip_len; in ProxyEncodeTcpStream() 363 pip->ip_len = htons(ntohs(pip->ip_len) + slen); in ProxyEncodeTcpStream() [all …]
|
| D | alias_skinny.c | 72 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler() argument 75 AliasHandleSkinny(la, pip, ah->lnk); in protohandler() 210 alias_skinny_reg_msg(struct RegisterMessage *reg_msg, struct ip *pip, in alias_skinny_reg_msg() argument 222 tc->th_sum = TcpChecksum(pip); in alias_skinny_reg_msg() 230 struct ip *pip, struct tcphdr *tc, in alias_skinny_startmedia() argument 236 (void)pip; in alias_skinny_startmedia() 253 alias_skinny_port_msg(struct IpPortMessage *port_msg, struct ip *pip, in alias_skinny_port_msg() argument 265 tc->th_sum = TcpChecksum(pip); in alias_skinny_port_msg() 272 struct ip *pip, struct tcphdr *tc, in alias_skinny_opnrcvch_ack() argument 287 opnrcv_lnk = FindUdpTcpOut(la, pip->ip_src, null_addr, in alias_skinny_opnrcvch_ack() [all …]
|
| D | alias_util.c | 99 IpChecksum(struct ip *pip) in IpChecksum() argument 101 return (LibAliasInternetChecksum(NULL, (u_short *) pip, in IpChecksum() 102 (pip->ip_hl << 2))); in IpChecksum() 107 TcpChecksum(struct ip *pip) in TcpChecksum() argument 114 nhdr = pip->ip_hl << 2; in TcpChecksum() 115 ntcp = ntohs(pip->ip_len) - nhdr; in TcpChecksum() 117 tc = (struct tcphdr *)ip_next(pip); in TcpChecksum() 134 ptr = (void *)&pip->ip_dst; in TcpChecksum() 137 ptr = (void *)&pip->ip_src; in TcpChecksum() 141 sum += htons((u_short) pip->ip_p); in TcpChecksum()
|
| D | alias_cuseeme.c | 59 AliasHandleCUSeeMeOut(struct libalias *la, struct ip *pip, 63 AliasHandleCUSeeMeIn(struct libalias *la, struct ip *pip, 78 protohandlerin(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandlerin() argument 81 AliasHandleCUSeeMeIn(la, pip, *ah->oaddr); in protohandlerin() 86 protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandlerout() argument 89 AliasHandleCUSeeMeOut(la, pip, ah->lnk); in protohandlerout() 176 AliasHandleCUSeeMeOut(struct libalias *la, struct ip *pip, struct alias_link *lnk) in AliasHandleCUSeeMeOut() argument 178 struct udphdr *ud = ip_next(pip); in AliasHandleCUSeeMeOut() 188 cu_lnk = FindUdpTcpOut(la, pip->ip_src, GetDestAddress(lnk), in AliasHandleCUSeeMeOut() 199 AliasHandleCUSeeMeIn(struct libalias *la, struct ip *pip, struct in_addr original_addr) in AliasHandleCUSeeMeIn() argument [all …]
|
| D | alias_irc.c | 109 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler() argument 114 AliasHandleIrcOut(la, pip, ah->lnk, ah->maxpktsize); in protohandler() 167 struct ip *pip, /* IP packet to examine */ in AliasHandleIrcOut() argument 181 tc = (struct tcphdr *)ip_next(pip); in AliasHandleIrcOut() 182 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut() 183 tlen = ntohs(pip->ip_len); in AliasHandleIrcOut() 194 sptr = (char *)pip; in AliasHandleIrcOut() 358 pip->ip_src.s_addr != true_addr.s_addr || in AliasHandleIrcOut() 442 tc = (struct tcphdr *)ip_next(pip); in AliasHandleIrcOut() 444 AddSeq(lnk, delta + copyat + iCopy - dlen, pip->ip_hl, in AliasHandleIrcOut() [all …]
|
| D | alias_nbt.c | 93 protohandler1(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler1() argument 96 return (AliasHandleUdpNbt(la, pip, ah->lnk, ah->aaddr, *ah->aport)); in protohandler1() 113 protohandler2in(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler2in() argument 116 AliasHandleUdpNbtNS(la, pip, ah->lnk, ah->aaddr, ah->aport, in protohandler2in() 122 protohandler2out(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler2out() argument 125 return (AliasHandleUdpNbtNS(la, pip, ah->lnk, &pip->ip_src, ah->sport, in protohandler2out() 337 struct ip *pip, /* IP packet to examine/patch */ in AliasHandleUdpNbt() argument 352 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbt() 765 struct ip *pip, /* IP packet to examine/patch */ in AliasHandleUdpNbtNS() argument 788 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbtNS()
|
| D | alias_dummy.c | 89 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah) in protohandler() argument 92 AliasHandleDummy(la, pip, ah); in protohandler()
|
| D | alias_sctp.c | 99 static int sctp_PktParser(struct libalias *la, int direction, struct ip *pip, 710 SctpAlias(struct libalias *la, struct ip *pip, int direction) in SctpAlias() argument 724 …rtnval = sctp_PktParser(la, direction, pip, &msg, &assoc); //using *char (change to mbuf when get … in SctpAlias() 730 if (ntohs(pip->ip_off) & IP_MF) { in SctpAlias() 1017 sctp_PktParser(struct libalias *la, int direction, struct ip *pip, in sctp_PktParser() argument 1041 sm->ip_hdr = pip; in sctp_PktParser() 1043 bytes_left = ntohs(pip->ip_len) - (pip->ip_hl << 2); in sctp_PktParser() 1051 sm->sctp_hdr = sctp_hdr = (struct sctphdr *) ip_next(pip); in sctp_PktParser() 1074 …*passoc = FindSctpGlobalT(la, pip->ip_src, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_po… in sctp_PktParser() 1076 …*passoc = FindSctpLocalT(la, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_port… in sctp_PktParser() [all …]
|
| D | alias_mod.c | 222 find_handler(int8_t dir, int8_t proto, struct libalias *la, __unused struct ip *pip, in find_handler() argument 233 error = p->protohandler(la, pip, ad); in find_handler()
|
| /freebsd-9-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| D | dt_provider.c | 488 dt_probe_instance_t *pip, *pip_next; in dt_probe_destroy() local 502 for (pip = prp->pr_inst; pip != NULL; pip = pip_next) { in dt_probe_destroy() 503 pip_next = pip->pi_next; in dt_probe_destroy() 504 dt_free(dtp, pip->pi_offs); in dt_probe_destroy() 505 dt_free(dtp, pip->pi_enoffs); in dt_probe_destroy() 506 dt_free(dtp, pip); in dt_probe_destroy() 519 dt_probe_instance_t *pip; in dt_probe_define() local 525 for (pip = prp->pr_inst; pip != NULL; pip = pip->pi_next) { in dt_probe_define() 526 if (strcmp(pip->pi_fname, fname) == 0 && in dt_probe_define() 527 ((rname == NULL && pip->pi_rname[0] == '\0') || in dt_probe_define() [all …]
|
| D | dt_program.c | 87 dtrace_proginfo_t *pip) in dtrace_program_info() argument 93 if (pip == NULL) in dtrace_program_info() 96 bzero(pip, sizeof (dtrace_proginfo_t)); in dtrace_program_info() 99 pip->dpi_descattr = _dtrace_maxattr; in dtrace_program_info() 100 pip->dpi_stmtattr = _dtrace_maxattr; in dtrace_program_info() 102 pip->dpi_descattr = _dtrace_defattr; in dtrace_program_info() 103 pip->dpi_stmtattr = _dtrace_defattr; in dtrace_program_info() 113 pip->dpi_descattr = in dtrace_program_info() 114 dt_attr_min(stp->ds_desc->dtsd_descattr, pip->dpi_descattr); in dtrace_program_info() 116 pip->dpi_stmtattr = in dtrace_program_info() [all …]
|
| D | dt_dof.c | 406 dt_probe_instance_t *pip; in dof_add_probe() local 440 for (pip = prp->pr_inst; pip != NULL; pip = pip->pi_next) { in dof_add_probe() 441 dt_dprintf("adding probe for %s:%s\n", pip->pi_fname, in dof_add_probe() 444 dofpr.dofpr_func = dof_add_string(ddo, pip->pi_fname); in dof_add_probe() 451 assert(pip->pi_noffs + pip->pi_nenoffs > 0); in dof_add_probe() 455 dofpr.dofpr_noffs = pip->pi_noffs; in dof_add_probe() 456 dt_buf_write(dtp, &ddo->ddo_offs, pip->pi_offs, in dof_add_probe() 457 pip->pi_noffs * sizeof (uint32_t), sizeof (uint32_t)); in dof_add_probe() 461 dofpr.dofpr_nenoffs = pip->pi_nenoffs; in dof_add_probe() 462 dt_buf_write(dtp, &ddo->ddo_enoffs, pip->pi_enoffs, in dof_add_probe() [all …]
|
| /freebsd-9-stable/tools/regression/pipe/ |
| D | pipe-reverse2.c | 41 int pip[2]; in main() local 45 if (pipe(pip) == -1) in main() 49 FD_SET(pip[0], &set); in main() 50 n = select(pip[1] + 1, NULL, &set, NULL, &(struct timeval){ 0, 0 }); in main() 54 n = write(pip[0], "x", 1); in main() 59 FD_SET(pip[0], &set); in main() 60 n = select(pip[1] + 1, NULL, &set, NULL, &(struct timeval){ 0, 0 }); in main()
|
| /freebsd-9-stable/bin/sh/ |
| D | eval.c | 527 int pip[2]; in evalpipe() local 538 pip[1] = -1; in evalpipe() 540 if (pipe(pip) < 0) { in evalpipe() 551 if (pip[1] >= 0) { in evalpipe() 552 if (!(prevfd >= 0 && pip[0] == 0)) in evalpipe() 553 close(pip[0]); in evalpipe() 554 if (pip[1] != 1) { in evalpipe() 555 dup2(pip[1], 1); in evalpipe() 556 close(pip[1]); in evalpipe() 563 prevfd = pip[0]; in evalpipe() [all …]
|
| D | redir.c | 255 int pip[2]; in openhere() local 258 if (pipe(pip) < 0) in openhere() 263 xwrite(pip[1], redir->nhere.doc->narg.text, len); in openhere() 268 close(pip[0]); in openhere() 275 xwrite(pip[1], redir->nhere.doc->narg.text, len); in openhere() 277 expandhere(redir->nhere.doc, pip[1]); in openhere() 281 close(pip[1]); in openhere() 282 return pip[0]; in openhere()
|
| /freebsd-9-stable/usr.sbin/ppp/ |
| D | tcpmss.c | 146 struct ip *pip; in tcpmss_Check() local 154 pip = (struct ip *)MBUF_CTOP(bp); in tcpmss_Check() 155 hlen = pip->ip_hl << 2; in tcpmss_Check() 161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check() 162 ntohs(pip->ip_len) == plen && hlen <= plen && in tcpmss_Check()
|
| D | ip.c | 255 const struct ip *pip = (const struct ip *)packet; in FilterCheck() local 257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */ in FilterCheck() 271 ncpaddr_setip4(&srcaddr, pip->ip_src); in FilterCheck() 272 ncpaddr_setip4(&dstaddr, pip->ip_dst); in FilterCheck() 273 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2); in FilterCheck() 274 payload = packet + (pip->ip_hl << 2); in FilterCheck() 275 cproto = pip->ip_p; in FilterCheck() 597 const struct ip *pip = (const struct ip *)packet; in PacketCheck() local 599 ncpaddr_setip4(&srcaddr, pip->ip_src); in PacketCheck() 600 ncpaddr_setip4(&dstaddr, pip->ip_dst); in PacketCheck() [all …]
|
| D | vjcomp.c | 77 struct ip *pip; in vj_LayerPush() local 81 pip = (struct ip *)MBUF_CTOP(bp); in vj_LayerPush() 82 if (*proto == PROTO_IP && pip->ip_p == IPPROTO_TCP && in vj_LayerPush() 84 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc, in vj_LayerPush()
|
| /freebsd-9-stable/sys/fs/ext2fs/ |
| D | ext2_alloc.c | 351 struct inode *pip; in ext2_valloc() local 359 pip = VTOI(pvp); in ext2_valloc() 360 fs = pip->i_e2fs; in ext2_valloc() 361 ump = pip->i_ump; in ext2_valloc() 372 cg = ext2_dirpref(pip); in ext2_valloc() 376 cg = ino_to_cg(fs, pip->i_number); in ext2_valloc() 381 ino = (ino_t)ext2_hashalloc(pip, cg, (long)ipref, mode, ext2_nodealloccg); in ext2_valloc() 442 ext2_dirpref(struct inode *pip) in ext2_dirpref() argument 451 mtx_assert(EXT2_MTX(pip->i_ump), MA_OWNED); in ext2_dirpref() 452 fs = pip->i_e2fs; in ext2_dirpref() [all …]
|
| /freebsd-9-stable/contrib/ipfilter/ipsend/ |
| D | iptests.c | 1377 ip_t *pip; local 1390 pip = (ip_t *)tbuf; 1397 for (s = (u_char *)pip, j = 0; j < sizeof(tbuf); j++, s++) 1399 IP_V_A(pip, IPVERSION); 1400 bcopy((char *)&ip->ip_dst, (char *)&pip->ip_dst, 1402 pip->ip_sum = 0; 1403 pip->ip_len &= 0xff; 1404 (void) send_ip(nfd, mtu, pip, gwip, 0); 1412 for (s = (u_char *)pip, j = 0; j < sizeof(tbuf); j++, s++) 1414 IP_V_A(pip, IPVERSION); [all …]
|
| /freebsd-9-stable/sys/contrib/octeon-sdk/ |
| D | cvmx-ciu-defs.h | 585 uint64_t pip : 1; /**< PIP interrupt member 641 uint64_t pip : 1; 1508 uint64_t pip : 1; /**< PIP interrupt enable */ member 1532 uint64_t pip : 1; 1665 uint64_t pip : 1; /**< PIP interrupt enable */ member 1687 uint64_t pip : 1; 1751 uint64_t pip : 1; /**< Write 1 to clear PIP interrupt enable */ member 1777 uint64_t pip : 1; 1867 uint64_t pip : 1; /**< Write 1 to clear PIP interrupt enable */ member 1891 uint64_t pip : 1; [all …]
|