/freebsd-12-stable/sys/fs/ext2fs/ |
H A D | ext2_inode.c | 223 * Truncate the inode oip to at most length size, freeing the 232 struct inode *oip; local 246 oip = VTOI(ovp); 251 fs = oip->i_e2fs; 252 osize = oip->i_size; 259 if (length > oip->i_e2fs->e2fs_maxfilesize) 265 error = ext2_balloc(oip, lbn, offset + 1, cred, &bp, flags); 270 oip->i_size = length; 279 oip->i_flag |= IN_CHANGE | IN_UPDATE; 292 oip 467 struct inode *oip; local [all...] |
/freebsd-12-stable/tools/tools/tinybsd/conf/firewall/etc/ |
H A D | rc.firewall | 201 oip="192.0.2.1" 265 ${fwcmd} add pass tcp from any to ${oip} 25 setup 268 ${fwcmd} add pass tcp from any to ${oip} 53 setup 269 ${fwcmd} add pass udp from any to ${oip} 53 270 ${fwcmd} add pass udp from ${oip} 53 to any 273 ${fwcmd} add pass tcp from any to ${oip} 80 setup 282 ${fwcmd} add pass udp from ${oip} to any 53 keep-state 285 ${fwcmd} add pass udp from ${oip} to any 123 keep-state
|
/freebsd-12-stable/tools/tools/tinybsd/conf/wireless/etc/ |
H A D | rc.firewall | 201 oip="192.0.2.1" 265 ${fwcmd} add pass tcp from any to ${oip} 25 setup 268 ${fwcmd} add pass tcp from any to ${oip} 53 setup 269 ${fwcmd} add pass udp from any to ${oip} 53 270 ${fwcmd} add pass udp from ${oip} 53 to any 273 ${fwcmd} add pass tcp from any to ${oip} 80 setup 282 ${fwcmd} add pass udp from ${oip} to any 53 keep-state 285 ${fwcmd} add pass udp from ${oip} to any 123 keep-state
|
/freebsd-12-stable/sys/netinet/ |
H A D | ip_icmp.c | 197 struct ip *oip, *nip; local 222 oip = mtod(n, struct ip *); 223 oiphlen = oip->ip_hl << 2; 228 printf("icmp_error(%p, %x, %d)\n", oip, type, code); 230 if (oip->ip_off & htons(~(IP_MF|IP_DF))) 232 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT && 233 !ICMP_INFOTYPE(((struct icmp *)((caddr_t)oip + 245 if (oip->ip_p == IPPROTO_TCP) { 255 oip = mtod(n, struct ip *); 260 if (ntohs(oip [all...] |
/freebsd-12-stable/sys/ufs/ufs/ |
H A D | ufs_lookup.c | 1291 ufs_dirrewrite(dp, oip, newinum, newtype, isrmdir) 1292 struct inode *dp, *oip; 1306 oip->i_effnlink--; 1307 oip->i_flag |= IN_CHANGE; 1309 softdep_setup_unlink(dp, oip); 1311 oip->i_nlink--; 1312 DIP_SET(oip, i_nlink, oip->i_nlink); 1313 oip->i_flag |= IN_CHANGE; 1318 ep->d_name[0] == '.' && ep->d_ino != oip [all...] |
/freebsd-12-stable/contrib/tcpdump/ |
H A D | print-icmp.c | 338 const struct ip *oip; local 380 oip = &dp->icmp_ip; 381 hlen = IP_HL(oip) * 4; 382 ouh = (const struct udphdr *)(((const u_char *)oip) + hlen); 385 switch (oip->ip_p) { 390 ipaddr_string(ndo, &oip->ip_dst), 397 ipaddr_string(ndo, &oip->ip_dst), 404 ipaddr_string(ndo, &oip->ip_dst), 405 oip->ip_p, dport);
|
H A D | print-icmp6.c | 880 const struct ip6_hdr *oip; local 888 oip = (const struct ip6_hdr *)(dp + 1); 923 ND_TCHECK(oip->ip6_dst); 930 ND_PRINT((ndo," %s",ip6addr_string(ndo, &oip->ip6_dst))); 934 ip6addr_string(ndo, &oip->ip6_dst), 935 ip6addr_string(ndo, &oip->ip6_src))); 938 if ((ouh = get_upperlayer(ndo, (const u_char *)oip, &prot)) 946 ip6addr_string(ndo, &oip->ip6_dst), 951 ip6addr_string(ndo, &oip->ip6_dst), 956 ip6addr_string(ndo, &oip [all...] |
/freebsd-12-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 792 struct ip *ip, *oip; local 840 oip = mtod(n, struct ip *); 841 oip->ip_v = IPVERSION; 842 oip->ip_hl = sizeof(struct ip) >> 2; 843 oip->ip_tos = 0; 844 oip->ip_len = htons(n->m_pkthdr.len); 845 oip->ip_ttl = V_ip_defttl; 846 oip->ip_p = IPPROTO_ICMP; 847 ip_fillid(oip); 848 oip [all...] |
/freebsd-12-stable/sbin/ping/ |
H A D | ping.c | 1136 struct ip oip; local 1293 memcpy(&oip, icmp_data_raw, oip_header_len); 1300 (oip.ip_dst.s_addr == whereto.sin_addr.s_addr) && 1301 (oip.ip_p == IPPROTO_ICMP) && 1306 pr_icmph(&icp, &oip, oicmp_raw); 1492 pr_icmph(struct icmp *icp, struct ip *oip, const u_char *const oicmp_raw) argument 1530 pr_retip(oip, oicmp_raw); 1534 pr_retip(oip, oicmp_raw); 1555 pr_retip(oip, oicmp_raw); 1574 pr_retip(oip, oicmp_ra [all...] |
/freebsd-12-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_nat.c | 3623 ip_t *oip; local 3642 oip = (ip_t *)((char *)fin->fin_dp + 8); 3643 minlen = IP_HL(oip) << 2; 3665 if ((char *)oip + fin->fin_dlen - ICMPERR_ICMPHLEN > 3671 if ((char *)oip + fin->fin_dlen - ICMPERR_ICMPHLEN > 3680 if (fin->fin_daddr != oip->ip_src.s_addr) { 3685 p = oip->ip_p; 3691 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); 3708 oip 3782 ip_t *oip; local [all...] |
H A D | ip_state.c | 2690 ip_t *oip; local 2708 oip = (ip_t *)((char *)ic + ICMPERR_ICMPHLEN); 2713 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) { 2722 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) { 2723 DT2(iss_icmp_len, fr_info_t *, fin, struct ip*, oip); 2743 if ((char *)oip + len > (char *)m->b_wptr) { 2748 if ((char *)oip + len > (char *)fin->fin_ip + m->m_len) { 2773 * watch out here, as ip is in host order and oip in network 2775 * oip->ip_len. 2777 savelen = oip [all...] |
H A D | ip_fil_freebsd.c | 450 ip_t *ip, *oip; local 461 oip = fin->fin_ip; 462 hlen = sizeof(*oip); 466 IP_HL_A(ip, sizeof(*oip) >> 2); 467 ip->ip_tos = oip->ip_tos;
|
H A D | fil.c | 1203 ip_t *oip; local 1280 oip = (ip_t *)((char *)fin->fin_dp + ICMPERR_ICMPHLEN); 1281 if ((ntohs(oip->ip_off) & IP_OFFMASK) != 0) { 1283 DT2(ipf_fi_bad_icmp_err, fr_info_t, fin, u_int, (ntohs(oip->ip_off) & IP_OFFMASK)); 1291 if (oip->ip_src.s_addr != fin->fin_daddr) {
|
/freebsd-12-stable/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 641 aniphdr_t *aip, *oip = canip; 648 aip->ah_prev = oip; 660 if (oip) 661 canip->ah_data = oip->ah_data + oip->ah_len;
|
/freebsd-12-stable/sys/netpfil/pf/ |
H A D | pf.c | 2312 u_int16_t oip = *ip; local 2319 *pc = pf_cksum_fixup(*pc, oip, *ip, u); 2320 *ic = pf_cksum_fixup(*ic, oip, *ip, 0);
|