/freebsd-12-stable/contrib/ipfilter/ipsend/ |
H A D | arp.c | 22 #include <netinet/ip.h> 63 int arp(ip, ether) 64 char *ip; 75 if (arp_getipv4(ip, ether) == 0) 78 if (!bcmp(ipsave, ip, 4)) { 86 bcopy(ip, (char *)&sin->sin_addr.s_addr, 4); 87 if ((hp = gethostbyaddr(ip, 4, AF_INET))) 109 bcopy(ip, &san.sin_addr.s_addr, 4); 111 (void) sendto(fd, ip, 4, 0, 133 bcopy(ip, ipsav [all...] |
H A D | iptest.c | 20 #include <netinet/ip.h> 72 ip_t *ip; local 81 ip = (ip_t *)calloc(1, 65536); 82 ti = (struct tcpiphdr *)ip; 83 ip->ip_len = sizeof(*ip); 84 IP_HL_A(ip, sizeof(*ip) >> 2); 134 if (resolve(dst, (char *)&ip->ip_dst) == -1) 140 if (resolve(src, (char *)&ip [all...] |
/freebsd-12-stable/sys/ufs/ufs/ |
H A D | ufs_gjournal.c | 62 struct inode *ip; local 68 ip = VTOI(vp); 72 ino = ip->i_number; 103 struct inode *ip; local 109 ip = VTOI(vp); 110 if ((vp->v_type == VDIR && ip->i_nlink > 2) || 111 (vp->v_type != VDIR && ip->i_nlink > 1)) { 122 struct inode *ip; local 128 ip = VTOI(vp); 129 if (ip [all...] |
H A D | ufs_acl.c | 71 ufs_sync_acl_from_inode(struct inode *ip, struct acl *acl) argument 87 ACL_USER_OBJ, ip->i_mode); 98 ACL_OTHER, ip->i_mode); 124 ACL_GROUP_OBJ, ip->i_mode); 130 ip->i_mode); 140 ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip) argument 143 ip->i_mode &= ACL_PRESERVE_MASK; 144 ip->i_mode |= acl_posix1e_acl_to_mode(acl); 145 DIP_SET(ip, i_mode, ip 158 struct inode *ip = VTOI(vp); local 232 struct inode *ip = VTOI(vp); local 283 struct inode *ip = VTOI(ap->a_vp); local 385 struct inode *ip = VTOI(vp); local 436 struct inode *ip = VTOI(ap->a_vp); local 489 struct inode *ip = VTOI(ap->a_vp); local [all...] |
/freebsd-12-stable/sys/compat/ndis/ |
H A D | subr_usbd.c | 241 usbd_iodispatch(device_object *dobj, irp *ip) argument 247 irp_sl = IoGetCurrentIrpStackLocation(ip); 250 IRP_NDIS_DEV(ip) = dev; 252 status = usbd_submit_urb(ip); 264 ip->irp_iostat.isb_status = usbd_urb2nt(status); 266 ip->irp_iostat.isb_info = 0; 267 return (ip->irp_iostat.isb_status); 271 usbd_ioinvalid(device_object *dobj, irp *ip) argument 276 irp_sl = IoGetCurrentIrpStackLocation(ip); 280 ip 289 usbd_pnp(device_object *dobj, irp *ip) argument 307 usbd_power(device_object *dobj, irp *ip) argument 385 usbd_geturb(irp *ip) argument 395 usbd_submit_urb(irp *ip) argument 448 usbd_func_getdesc(irp *ip) argument 508 usbd_func_selconf(irp *ip) argument 587 usbd_setup_endpoint_one(irp *ip, uint8_t ifidx, struct ndisusb_ep *ne, struct usb_config *epconf) argument 613 usbd_setup_endpoint_default(irp *ip, uint8_t ifidx) argument 633 usbd_setup_endpoint(irp *ip, uint8_t ifidx, struct usb_endpoint_descriptor *ep) argument 689 usbd_func_abort_pipe(irp *ip) argument 712 usbd_func_vendorclass(irp *ip) argument 766 usbd_irpcancel(device_object *dobj, irp *ip) argument 838 irp *ip; local 941 irp *ip; local 1085 usbd_get_ndisep(irp *ip, usb_endpoint_descriptor_t *ep) argument 1103 irp *ip; local 1180 usbd_taskadd(irp *ip, unsigned type) argument 1205 irp *ip; local 1264 usbd_func_bulkintr(irp *ip) argument [all...] |
/freebsd-12-stable/contrib/processor-trace/libipt/src/ |
H A D | pt_insn_decoder.c | 52 decoder->ip = 0ull; 189 static int pt_insn_tick(struct pt_insn_decoder *decoder, uint64_t ip) argument 233 ev->variant.tick.ip = ip; 253 uint64_t *ip) 261 evip = decoder->ip; 263 status = pt_qry_indirect_branch(&decoder->query, ip); 292 errcode = pt_insn_tick(decoder, decoder->ip); 335 status = pt_qry_sync_forward(&decoder->query, &decoder->ip); 349 status = pt_qry_sync_backward(&decoder->query, &decoder->ip); 252 pt_insn_indirect_branch(struct pt_insn_decoder *decoder, uint64_t *ip) argument 494 uint64_t ip; local 625 uint64_t ip; local 697 uint64_t ip; local 1262 uint64_t ip; local [all...] |
H A D | pt_block_decoder.c | 81 decoder->ip = 0ull; 193 static int pt_blk_tick(struct pt_block_decoder *decoder, uint64_t ip) argument 237 ev->variant.tick.ip = ip; 257 uint64_t *ip) 265 evip = decoder->ip; 267 status = pt_qry_indirect_branch(&decoder->query, ip); 296 errcode = pt_blk_tick(decoder, decoder->ip); 348 status = pt_qry_sync_forward(&decoder->query, &decoder->ip); 364 status = pt_qry_sync_backward(&decoder->query, &decoder->ip); 256 pt_blk_indirect_branch(struct pt_block_decoder *decoder, uint64_t *ip) argument 562 uint64_t ip; local 883 pt_blk_proceed_to_ip(struct pt_block_decoder *decoder, struct pt_block *block, struct pt_insn *insn, struct pt_insn_ext *iext, uint64_t ip) argument 942 pt_blk_proceed_to_ip_with_trace(struct pt_block_decoder *decoder, struct pt_block *block, uint64_t ip) argument 1013 uint64_t ip; local 1683 pt_blk_is_in_section(const struct pt_mapped_section *msec, uint64_t ip) argument 1703 pt_blk_add_trampoline(struct pt_block_cache *bcache, uint64_t ip, uint64_t nip, enum pt_exec_mode mode) argument 2230 uint64_t ip; local 2347 uint64_t ip; local [all...] |
/freebsd-12-stable/contrib/netbsd-tests/net/net/ |
H A D | t_ipv6_lifetime.sh | 47 local ip="fc00::1" 57 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip 61 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip delete 64 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip pltime $time 71 atf_check -s exit:0 -o match:"$ip.+$deprecated" rump.ifconfig -L shmif0 72 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip delete 76 rump.ifconfig shmif0 inet6 $ip vltime $time 79 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip \ 87 atf_check -s exit:0 -o not-match:"$ip" rump.ifconfig -L shmif0 91 shmif0 inet6 $ip pltim [all...] |
H A D | t_ipaddress.sh | 35 local ip=10.0.0.1 43 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 $ip/24 49 check_route $ip 'link#2' UHl lo0 53 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 $ip delete 57 check_route_no_entry $ip 61 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 $ip/24 66 check_route $ip 'link#2' UHl lo0 70 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 $ip delete 74 check_route_no_entry $ip 82 local ip [all...] |
/freebsd-12-stable/contrib/tcpdump/ |
H A D | ip.h | 33 * @(#)ip.h 8.2 (Berkeley) 6/1/94 52 struct ip { struct 54 #define IP_V(ip) (((ip)->ip_vhl & 0xf0) >> 4) 55 #define IP_HL(ip) ((ip)->ip_vhl & 0x0f) 130 #define IPTS_OFLW(ip) (((ipt)->ipt_oflwflg & 0xf0) >> 4) 131 #define IPTS_FLG(ip) ((ipt)->ipt_oflwflg & 0x0f)
|
/freebsd-12-stable/sys/dev/sfxge/ |
H A D | sfxge_nvram.c | 56 sfxge_nvram_rw(struct sfxge_softc *sc, sfxge_ioc_t *ip, efx_nvram_type_t type, argument 60 size_t total_size = ip->u.nvram.size; 69 rc = copyout(fake_dynamic_cfg_nvram, ip->u.nvram.data, 84 rc = copyin(ip->u.nvram.data + off, buf, len); 88 ip->u.nvram.offset + off, buf, len); 93 ip->u.nvram.offset + off, buf, len); 96 rc = copyout(buf, ip->u.nvram.data + off, len); 133 sfxge_nvram_ioctl(struct sfxge_softc *sc, sfxge_ioc_t *ip) argument 153 if (ip->u.nvram.type > SFXGE_NVRAM_TYPE_DYNAMIC_CFG) 155 type = nvram_types[ip [all...] |
/freebsd-12-stable/sys/netinet/ |
H A D | in_gif.c | 61 #include <netinet/ip.h> 200 struct ip *ip; local 234 ip = malloc(sizeof(*ip), M_GIF, M_WAITOK | M_ZERO); 235 ip->ip_src.s_addr = src->sin_addr.s_addr; 236 ip->ip_dst.s_addr = dst->sin_addr.s_addr; 246 sc->gif_iphdr = ip; 274 struct ip *ip; local 314 struct ip *ip; local 339 const struct ip *ip; local [all...] |
H A D | ip_input.c | 74 #include <netinet/ip.h> 91 CTASSERT(sizeof(struct ip) == 20); 143 .nh_name = "ip", 416 VNET_SYSUNINIT(ip, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, ip_destroy, NULL); 429 struct ip *ip; local 432 ip = mtod(m, struct ip *); 433 hlen = ip->ip_hl << 2; 437 if (IPSEC_INPUT(ipv4, m, hlen, ip 455 struct ip *ip = NULL; local 957 struct ip *ip = mtod(m, struct ip *); local 1150 ip_savecontrol(struct inpcb *inp, struct mbuf **mp, struct ip *ip, struct mbuf *m) argument [all...] |
H A D | in_kdtrace.c | 38 SDT_PROVIDER_DEFINE(ip); variable 43 SDT_PROBE_DEFINE6_XLATE(ip, , , receive, 48 "struct ip *", "ipv4info_t *", 51 SDT_PROBE_DEFINE6_XLATE(ip, , , send, 56 "struct ip *", "ipv4info_t *",
|
/freebsd-12-stable/bin/stty/ |
H A D | modes.c | 209 msearch(char ***argvp, struct info *ip) argument 218 ip->t.c_cflag &= ~mp->unset; 219 ip->t.c_cflag |= mp->set; 220 ip->set = 1; 225 ip->t.c_iflag &= ~mp->unset; 226 ip->t.c_iflag |= mp->set; 227 ip->set = 1; 232 ip->t.c_lflag &= ~mp->unset; 233 ip->t.c_lflag |= mp->set; 234 ip [all...] |
/freebsd-12-stable/contrib/mandoc/ |
H A D | dba_read.c | 43 int32_t im, ip, iv, npages; local 49 for (ip = 0; ip < npages; ip++) { 50 pdata = dbm_page_get(ip);
|
/freebsd-12-stable/sys/fs/cd9660/ |
H A D | cd9660_bmap.c | 67 struct iso_node *ip = VTOI(ap->a_vp); local 76 *ap->a_bop = &ip->i_mnt->im_devvp->v_bufobj; 83 bshift = ip->i_mnt->im_bshift; 84 *ap->a_bnp = (ip->iso_start + lblkno) << (bshift - DEV_BSHIFT); 93 nblk = (ip->i_size >> bshift) - (lblkno + 1);
|
/freebsd-12-stable/sys/ufs/ffs/ |
H A D | ffs_vnops.c | 230 struct inode *ip; local 237 ip = VTOI(vp); 238 ip->i_flag &= ~IN_NEEDSYNC; 255 lbn = lblkno(ITOFS(ip), (ip->i_size + ITOFS(ip)->fs_bsize - 1)); 393 } else if ((ip->i_flags & (IN_SIZEMOD | IN_IBLKDATA)) != 0) { 500 struct inode *ip; local 530 ip = VTOI(vp); 537 if ((int)ip 692 struct inode *ip; local 890 struct inode *ip; local 1010 struct inode *ip; local 1165 struct inode *ip; local 1215 struct inode *ip; local 1231 struct inode *ip; local 1244 struct inode *ip; local 1275 struct inode *ip; local 1408 struct inode *ip; local 1486 struct inode *ip; local 1539 struct inode *ip; local 1598 struct inode *ip; local 1718 struct inode *ip; local [all...] |
/freebsd-12-stable/lib/libc/arm/string/ |
H A D | memcpy_xscale.S | 51 ands ip, r3, #0x03 /* Already word aligned? */ 53 cmp ip, #0x02 54 ldrb ip, [r1], #0x01 56 strb ip, [r3], #0x01 57 ldrble ip, [r1], #0x01 59 strble ip, [r3], #0x01 60 ldrblt ip, [r1], #0x01 62 strblt ip, [r3], #0x01 66 ands ip, r1, #0x03 /* Is src also word-aligned? */ 71 ldrne ip, [r [all...] |
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | iplist.c | 44 do_inet_aton(const char *start, const char *end, struct in_addr *ip) argument 54 return inet_aton(ipstr, ip); 69 if (!inet_aton(range, &list->cur.ip)) 71 list->cur.lstart = ntohl(list->cur.ip.s_addr); 74 if (!do_inet_aton(range, ptr, &list->cur.ip)) 77 list->cur.lstart = ntohl(list->cur.ip.s_addr); 89 list->cur.lstart = ntohl(list->cur.ip.s_addr); 135 list->cur.ip.s_addr = INADDR_ANY; 136 return list->cur.ip; 140 list->cur.ip 210 iplist_ip2pos(struct iplist *list, struct in_addr ip) argument [all...] |
/freebsd-12-stable/sys/netinet/libalias/ |
H A D | alias_dummy.c | 50 #include <netinet/ip.h> 62 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah); 89 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah) 148 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah) argument
|
/freebsd-12-stable/tests/sys/netpfil/common/ |
H A D | pft_ping.py | 72 ip = packet.getlayer(sp.IP) 73 if not ip: 75 if ip.dst != dst_ip: 93 if ip.tos != int(args.expect_tos[0]): 95 % (ip.tos, int(args.expect_tos[0]))) 106 ip = packet.getlayer(sp.IPv6) 107 if not ip: 109 if ip.dst != dst_ip: 129 ip = packet.getlayer(sp.IP) 130 if not ip [all...] |
/freebsd-12-stable/sys/net/ |
H A D | if_me.c | 59 #include <netinet/ip.h> 344 const struct ip *ip; local 351 ip = mtod(m, const struct ip *); 352 CK_LIST_FOREACH(sc, &ME_HASH(ip->ip_dst.s_addr, 353 ip->ip_src.s_addr), chain) { 354 if (sc->me_src.s_addr == ip->ip_dst.s_addr && 355 sc->me_dst.s_addr == ip->ip_src.s_addr) { 472 struct ip *i local 512 memmove(mtodo(m, hlen), ip, sizeof(struct ip)); local 553 struct ip *ip; local [all...] |
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/builtins/arm/ |
H A D | aeabi_cfcmp.S | 54 mov ip, #APSR_C 55 msr APSR_nzcvq, ip 106 moveq ip, #0 113 moveq ip, #(APSR_C | APSR_Z) 114 movne ip, #(APSR_C) 117 msr APSR_nzcvq, ip 131 mov ip, r0 133 mov r1, ip
|
/freebsd-12-stable/contrib/ipfilter/lib/ |
H A D | ipft_hx.c | 66 ip_t *ip; local 80 ip = (ip_t *)buf; 84 mb->mb_len = (char *)ip - buf; 133 t = (char *)ip; 134 ip = (ip_t *)readhex(s, (char *)ip); 138 if (t < (char *)ip) 140 while (t < (char *)ip) {
|