/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | n5 | 1 > zx0 ip #0 20(20) 255 10.1.1.0 > 10.1.1.2 2 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.1.2 3 > zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 4 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 5 > zx0 ip #0 40(20) 6 10.1.1.2,1026 > 10.1.1.1,1025 6 > zx0 ip #0 20(20) 255 10.2.2.1 > 10.1.2.1 7 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.2.1 8 < zx0 ip #0 20(20) 255 10.1.1.1 > 10.1.1.2 9 < zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 10 < zx0 ip #0 20(20) 255 10.2.2.1 > 10.2.1.1 [all …]
|
H A D | n1 | 1 > zx0 ip #0 20(20) 255 10.1.1.0 > 10.1.1.2 2 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.1.2 3 > zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 4 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 5 > zx0 ip #0 40(20) 6 10.1.1.2,1026 > 10.1.1.1,1025 6 > zx0 ip #0 20(20) 255 10.2.2.1 > 10.1.2.1 7 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.2.1 8 < zx0 ip #0 20(20) 255 10.1.1.1 > 10.1.1.2 9 < zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 10 < zx0 ip #0 20(20) 255 10.2.2.1 > 10.2.1.1 [all …]
|
H A D | n2 | 1 > zx0 ip #0 40(20) 6 10.2.2.2,10000 > 10.1.1.1,1025 2 > zx0 ip #0 40(20) 6 10.2.2.2,10001 > 10.1.1.2,1025 3 > zx0 ip #0 20(20) 0 10.1.1.0 > 10.1.1.2 4 > zx0 ip #0 20(20) 0 10.1.1.1 > 10.1.2.1 5 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 6 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 7 > zx0 ip #0 40(20) 6 10.1.1.2,1026 > 10.1.1.1,1025 8 > zx0 ip #0 28(20) 17 10.1.1.2,1025 > 10.1.1.1,1025 9 > zx0 ip #0 40(20) 6 10.1.1.3,2000 > 10.1.2.1,80 10 > zx0 ip #0 40(20) 6 10.1.1.3,2001 > 10.1.3.1,80 [all …]
|
H A D | n11 | 1 > zx0 ip #0 20(20) 255 10.1.1.0 > 10.1.1.2 2 > zx0 ip #0 20(20) 255 1.6.7.8 > 10.1.1.2 3 > zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 4 > zx0 ip #0 20(20) 255 10.2.2.1 > 10.1.2.1 5 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.2.1 6 < zx0 ip #0 20(20) 255 10.1.1.1 > 10.1.1.2 7 < zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 8 < zx0 ip #0 20(20) 255 10.2.2.1 > 10.2.1.1 9 < zx0 ip #0 20(20) 255 10.2.2.2 > 10.2.1.1 10 < zx0 ip #0 20(20) 255 10.2.2.3 > 10.1.1.1 [all …]
|
H A D | n6 | 1 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.2.2.1,10023 2 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.1.1.2,23 3 < zx0 ip #0 40(20) 6 10.3.0.1,12345 > 10.1.2.2,23 4 < zx0 ip #0 40(20) 6 10.3.0.1,12345 > 10.2.2.2,23 5 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.2.2.1,10023 6 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.1.1.1,53 7 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.1.1.1,53 8 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.1.0.0,23 9 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.1.0.0,23 10 < zx0 ip #0 28(20) 17 10.2.2.2,12345 > 10.1.1.0,53 [all …]
|
H A D | n4 | 1 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.2.2.1,10023 2 > zx0 ip #0 40(20) 6 10.1.1.1,23 > 10.3.3.3,12345 3 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.1.1.1,53 4 > zx0 ip #0 40(20) 6 10.2.2.1,10053 > 10.3.3.3,12345 5 < zx0 ip #0 40(20) 6 10.3.3.3,12346 > 10.1.0.0,23 6 > zx0 ip #0 40(20) 6 10.2.2.1,10023 > 10.3.3.3,12346 7 < zx0 ip #0 28(20) 17 10.3.3.3,12345 > 10.1.1.0,53 8 > zx0 ip #0 28(20) 17 10.2.2.1,10053 > 10.3.3.3,12345 9 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.1.1.0,53 10 > zx0 ip #0 40(20) 6 10.2.2.1,53 > 10.3.3.3,12345 [all …]
|
/freebsd/usr.bin/kdump/ |
H A D | linux.c | 69 register_t *ip, *first; in ktrsyscall_linux() local 73 ip = first = &ktr->ktr_args[0]; in ktrsyscall_linux() 99 print_integer_arg_valid(sysdecode_atfd, *ip); in ktrsyscall_linux() 101 ip++; in ktrsyscall_linux() 110 print_number(ip, narg, c); in ktrsyscall_linux() 112 print_mask_arg(sysdecode_access_mode, *ip); in ktrsyscall_linux() 113 ip++; in ktrsyscall_linux() 120 print_number(ip, narg, c); in ktrsyscall_linux() 122 decode_filemode(*ip); in ktrsyscall_linux() 123 ip++; in ktrsyscall_linux() [all …]
|
H A D | kdump.c | 833 register_t *ip; in ktrsyscall() local 836 ip = &ktr->ktr_args[0]; in ktrsyscall() 842 ktrsyscall_freebsd(ktr, &ip, &narg, &c, in ktrsyscall() 849 ktrsyscall_linux32(ktr, &ip, in ktrsyscall() 853 ktrsyscall_linux(ktr, &ip, &narg, &c); in ktrsyscall() 859 print_number(ip, narg, c); in ktrsyscall() 870 register_t *ip, *first; in ktrsyscall_freebsd() local 874 ip = first = &ktr->ktr_args[0]; in ktrsyscall_freebsd() 904 print_integer_arg_valid(sysdecode_atfd, *ip); in ktrsyscall_freebsd() 906 ip++; in ktrsyscall_freebsd() [all …]
|
/freebsd/bin/stty/ |
H A D | key.c | 97 ksearch(char ***argvp, struct info *ip) in ksearch() argument 104 ip->off = 1; in ksearch() 107 ip->off = 0; in ksearch() 113 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch() 117 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch() 121 kp->f(ip); in ksearch() 126 f_all(struct info *ip) in f_all() argument 128 print(&ip->t, &ip->win, ip->ldisc, BSD); in f_all() 132 f_cbreak(struct info *ip) in f_cbreak() argument 135 if (ip->off) in f_cbreak() [all …]
|
/freebsd/sbin/ipf/ipsend/ |
H A D | iptests.c | 94 ip_test1(char *dev, int mtu, ip_t *ip, struct in_addr gwip, int ptest) in ip_test1() argument 104 IP_HL_A(ip, sizeof(*ip) >> 2); in ip_test1() 105 IP_V_A(ip, IPVERSION); in ip_test1() 106 ip->ip_tos = 0; in ip_test1() 107 ip->ip_off = 0; in ip_test1() 108 ip->ip_ttl = 60; in ip_test1() 109 ip->ip_p = IPPROTO_UDP; in ip_test1() 110 ip->ip_sum = 0; in ip_test1() 111 u = (udphdr_t *)(ip + 1); in ip_test1() 116 ip->ip_len = sizeof(*ip) + ntohs(u->uh_ulen); in ip_test1() [all …]
|
H A D | ip.c | 77 send_ip(int nfd, int mtu, ip_t *ip, struct in_addr gwip, int frag) in send_ip() argument 112 bcopy((char *)ip, (char *)&ipsv, sizeof(*ip)); in send_ip() 114 iplen = ip->ip_len; in send_ip() 115 ip->ip_len = htons(iplen); in send_ip() 117 if (!IP_V(ip)) in send_ip() 118 IP_V_A(ip, IPVERSION); in send_ip() 119 if (!ip->ip_id) in send_ip() 120 ip->ip_id = htons(id++); in send_ip() 121 if (!ip->ip_ttl) in send_ip() 122 ip->ip_ttl = 60; in send_ip() [all …]
|
H A D | ipsend.c | 70 void do_icmp(ip_t *ip, char *args) in do_icmp() argument 75 ip->ip_p = IPPROTO_ICMP; in do_icmp() 76 ip->ip_len += sizeof(*ic); in do_icmp() 77 ic = (struct icmp *)(ip + 1); in do_icmp() 120 send_packets(char *dev, int mtu, ip_t *ip, struct in_addr gwip) in send_packets() argument 127 return (send_packet(wfd, mtu, ip, gwip)); in send_packets() 131 udpcksum(ip_t *ip, struct udphdr *udp, int len) in udpcksum() argument 149 ph.h.src = ip->ip_src.s_addr; in udpcksum() 150 ph.h.dst = ip->ip_dst.s_addr; in udpcksum() 169 ip_t *ip; in main() local [all …]
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_inode_cnv.c | 145 ext2_ei2i(struct ext2fs_dinode *ei, struct inode *ip) in ext2_ei2i() argument 147 struct m_ext2fs *fs = ip->i_e2fs; in ext2_ei2i() 152 if ((ip->i_number < EXT2_FIRST_INO(fs) && ip->i_number != EXT2_ROOTINO) || in ext2_ei2i() 153 (ip->i_number < EXT2_ROOTINO) || in ext2_ei2i() 154 (ip->i_number > le32toh(fs->e2fs->e2fs_icount))) { in ext2_ei2i() 165 ip->i_nlink = le16toh(ei->e2di_nlink); in ext2_ei2i() 166 ip->i_mode = ip->i_nlink ? le16toh(ei->e2di_mode) : 0; in ext2_ei2i() 167 if (ip->i_number == EXT2_ROOTINO && in ext2_ei2i() 168 (ip->i_nlink < 2 || !S_ISDIR(ip->i_mode))) { in ext2_ei2i() 184 ip->i_size = le32toh(ei->e2di_size); in ext2_ei2i() [all …]
|
/freebsd/contrib/libxo/tests/core/ |
H A D | test_01.c | 44 struct item *ip; in main() local 128 for (ip = list; ip->i_title; ip++) { in main() 135 ip->i_sku_base, ip->i_sku_num, in main() 136 ip->i_title, ip->i_sold, ip->i_instock, ip->i_onorder, in main() 137 ip->i_sku_base, ip->i_sku_num); in main() 150 for (ip = list; ip->i_title; ip++) { in main() 153 xo_emit("{keq:sku/%s-%u/%s-000-%u}", ip->i_sku_base, ip->i_sku_num); in main() 154 xo_emit("{L:Item} '{k:name/%s}':\n", ip->i_title); in main() 156 ip->i_sold, ip->i_sold ? ".0" : ""); in main() 157 xo_emit("{P: }{Lcw:In stock}{:in-stock/%u}\n", ip->i_instock); in main() [all …]
|
H A D | test_10.c | 46 struct item *ip; in main() local 122 for (ip = list; ip->i_title; ip++) { in main() 131 ip->i_sku_base, ip->i_sku_num, in main() 132 ip->i_title, ip->i_sold, in main() 133 (ip->i_instock < 5) ? "inverse" : "normal", ip->i_instock, in main() 134 (ip->i_onorder > 5) ? "yellow" : "default", ip->i_onorder, in main() 135 ip->i_sku_base, ip->i_sku_num); in main() 148 for (ip = list; ip->i_title; ip++) { in main() 151 xo_emit("{keq:sku/%s-%u/%s-000-%u}", ip->i_sku_base, ip->i_sku_num); in main() 152 xo_emit("{L:Item} '{k:name/%s}':\n", ip->i_title); in main() [all …]
|
/freebsd/sys/ufs/ufs/ |
H A D | inode.h | 172 #define UFS_INODE_SET_MODE(ip, mode) do { \ argument 173 struct inode *_ip = (ip); \ 180 #define UFS_INODE_SET_FLAG(ip, flags) do { \ argument 181 struct inode *_ip = (ip); \ 190 #define UFS_INODE_SET_FLAG_SHARED(ip, flags) do { \ argument 191 struct inode *_ip = (ip); \ 210 #define ITOUMP(ip) ((ip)->i_ump) argument 211 #define ITODEV(ip) (ITOUMP(ip)->um_dev) argument 212 #define ITODEVVP(ip) (ITOUMP(ip)->um_devvp) argument 213 #define ITOFS(ip) (ITOUMP(ip)->um_fs) argument [all …]
|
H A D | ufs_inode.c | 66 struct inode *ip; in ufs_need_inactive() local 72 ip = VTOI(vp); in ufs_need_inactive() 73 if (UFS_RDONLY(ip)) in ufs_need_inactive() 77 if (ip->i_mode == 0 || ip->i_nlink <= 0 || in ufs_need_inactive() 78 (ip->i_effnlink == 0 && DOINGSOFTDEP(vp)) || in ufs_need_inactive() 79 (ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_MODIFIED | in ufs_need_inactive() 81 (ip->i_effnlink <= 0 && (ip->i_size != 0 || (I_IS_UFS2(ip) && in ufs_need_inactive() 82 ip->i_din2->di_extsize != 0)))) in ufs_need_inactive() 86 if (ip->i_dquot[i] != NULL) in ufs_need_inactive() 107 struct inode *ip = VTOI(vp); in ufs_inactive() local [all …]
|
H A D | ufs_vnops.c | 148 struct inode *ip; in ufs_itimes_locked() local 153 ip = VTOI(vp); in ufs_itimes_locked() 154 if (UFS_RDONLY(ip)) in ufs_itimes_locked() 156 if ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) == 0) in ufs_itimes_locked() 160 UFS_INODE_SET_FLAG(ip, IN_LAZYMOD); in ufs_itimes_locked() 163 (ip->i_flag & (IN_CHANGE | IN_UPDATE))) in ufs_itimes_locked() 164 UFS_INODE_SET_FLAG(ip, IN_MODIFIED); in ufs_itimes_locked() 165 else if (ip->i_flag & IN_ACCESS) in ufs_itimes_locked() 166 UFS_INODE_SET_FLAG(ip, IN_LAZYACCESS); in ufs_itimes_locked() 168 if (ip->i_flag & IN_ACCESS) { in ufs_itimes_locked() [all …]
|
/freebsd/sbin/dhclient/ |
H A D | dhclient.c | 620 struct interface_info *ip = ipp; in state_reboot() local 623 if (!ip->client->active || ip->client->active->is_bootp) { in state_reboot() 624 state_init(ip); in state_reboot() 629 ip->client->state = S_REBOOTING; in state_reboot() 634 ip->client->xid = arc4random(); in state_reboot() 638 make_request(ip, ip->client->active); in state_reboot() 639 ip->client->destination = iaddr_broadcast; in state_reboot() 640 ip->client->first_sending = cur_time; in state_reboot() 641 ip->client->interval = ip->client->config->initial_interval; in state_reboot() 644 ip->client->medium = NULL; in state_reboot() [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_double_fast.c | 25 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillDoubleHashTable() local 33 for (; ip + fastHashFillStep - 1 <= iend; ip += fastHashFillStep) { in ZSTD_fillDoubleHashTable() 34 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTable() 37 size_t const smHash = ZSTD_hashPtr(ip + i, hBitsS, mls); in ZSTD_fillDoubleHashTable() 38 size_t const lgHash = ZSTD_hashPtr(ip + i, hBitsL, 8); in ZSTD_fillDoubleHashTable() 92 const BYTE* ip = istart; /* the current position */ in ZSTD_compressBlock_doubleFast_noDict_generic() local 98 ip += ((ip - prefixLowest) == 0); in ZSTD_compressBlock_doubleFast_noDict_generic() 100 U32 const current = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_noDict_generic() 110 nextStep = ip + kStepIncr; in ZSTD_compressBlock_doubleFast_noDict_generic() 111 ip1 = ip + step; in ZSTD_compressBlock_doubleFast_noDict_generic() [all …]
|
/freebsd/sbin/hastd/ |
H A D | lzf.c | 112 const u8 *ip = (const u8 *)in_data; in lzf_compress() local 114 const u8 *in_end = ip + in_len; in lzf_compress() 140 *hslot++ = ip; in lzf_compress() 146 hval = FRST (ip); in lzf_compress() 147 while (ip < in_end - 2) in lzf_compress() 149 hval = NEXT (hval, ip); in lzf_compress() 151 ref = *hslot; *hslot = ip; in lzf_compress() 155 && ref < ip /* the next test will actually take care of this, but this is faster */ in lzf_compress() 157 && (off = ip - ref - 1) < MAX_OFF in lzf_compress() 158 && ip in lzf_compress() 317 u8 const *ip = (const u8 *)in_data; lzf_decompress() local [all...] |
/freebsd/stand/libsa/ |
H A D | ip.c | 62 struct ip *ipq_hdr; 78 struct ip *ip_hdr; 89 struct ip *ip; in sendip() local 104 ip = (struct ip *)pkt - 1; in sendip() 105 len += sizeof(*ip); in sendip() 107 bzero(ip, sizeof(*ip)); in sendip() 109 ip->ip_v = IPVERSION; /* half-char */ in sendip() 110 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ in sendip() 111 ip->ip_len = htons(len); in sendip() 112 ip->ip_p = proto; /* char */ in sendip() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_inode.c | 98 struct inode *ip; in ffs_update() local 104 ip = VTOI(vp); in ffs_update() 105 if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor == 0) in ffs_update() 107 ip->i_flag &= ~(IN_LAZYACCESS | IN_LAZYMOD | IN_MODIFIED); in ffs_update() 127 ip->i_flag &= ~(IN_SIZEMOD | IN_IBLKDATA); in ffs_update() 128 fs = ITOFS(ip); in ffs_update() 144 if (IS_SNAPSHOT(ip)) in ffs_update() 146 bn = fsbtodb(fs, ino_to_fsba(fs, ip->i_number)); in ffs_update() 147 error = ffs_breadz(VFSTOUFS(vp->v_mount), ITODEVVP(ip), bn, bn, in ffs_update() 186 softdep_update_inodeblock(ip, bp, waitfor); in ffs_update() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_double_fast.c | 25 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillDoubleHashTable() local 33 for (; ip + fastHashFillStep - 1 <= iend; ip += fastHashFillStep) { in ZSTD_fillDoubleHashTable() 34 U32 const current = (U32)(ip - base); in ZSTD_fillDoubleHashTable() 37 size_t const smHash = ZSTD_hashPtr(ip + i, hBitsS, mls); in ZSTD_fillDoubleHashTable() 38 size_t const lgHash = ZSTD_hashPtr(ip + i, hBitsL, 8); in ZSTD_fillDoubleHashTable() 63 const BYTE* ip = istart; in ZSTD_compressBlock_doubleFast_generic() local 97 const U32 dictAndPrefixLength = (U32)((ip - prefixLowest) + (dictEnd - dictStart)); in ZSTD_compressBlock_doubleFast_generic() 109 ip += (dictAndPrefixLength == 0); in ZSTD_compressBlock_doubleFast_generic() 111 U32 const current = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_generic() 125 while (ip < ilimit) { /* < instead of <=, because repcode check at (ip+1) */ in ZSTD_compressBlock_doubleFast_generic() [all …]
|
/freebsd/usr.bin/lam/ |
H A D | lam.c | 74 struct openfile *ip; in main() local 94 for (ip = input; ip->fp != NULL; ip++) in main() 95 linep = gatherline(ip); in main() 99 fputs(ip->sepstring, stdout); in main() 108 struct openfile *ip = input; in getargs() local 122 ip->fp = stdin; in getargs() 123 else if ((ip->fp = fopen(p, "r")) == NULL) { in getargs() 126 if (caph_rights_limit(fileno(ip->fp), &rights_ro) < 0) in getargs() 128 ip->pad = P; in getargs() 129 if (!ip->sepstring) in getargs() [all …]
|