Searched defs:ip (Results 1 - 25 of 538) sorted by relevance

1234567891011>>

/freebsd-head/sys/netinet/
H A Din_kdtrace.c38 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-head/sys/mips/include/
H A Din_cksum.h55 in_cksum_update(struct ip *ip) argument
58 __tmpsum = (int)ntohs(ip->ip_sum) + 256;
59 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
64 #define in_cksum_update(ip) \
67 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
68 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
76 u_int in_cksum_hdr(const struct ip *ip);
/freebsd-head/sys/fs/cd9660/
H A Dcd9660_bmap.c67 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-head/sys/powerpc/include/
H A Din_cksum.h54 in_cksum_update(struct ip *ip) argument
57 __tmpsum = (int)ntohs(ip->ip_sum) + 256;
58 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
63 #define in_cksum_update(ip) \
66 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
67 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
75 u_int in_cksum_hdr(const struct ip *ip);
/freebsd-head/sys/amd64/include/
H A Din_cksum.h58 in_cksum_update(struct ip *ip) argument
61 __tmpsum = (int)ntohs(ip->ip_sum) + 256;
62 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
67 #define in_cksum_update(ip) \
70 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
71 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
79 u_int in_cksum_hdr(const struct ip *ip);
/freebsd-head/contrib/processor-trace/libipt/internal/include/
H A Dpt_last_ip.h38 /* Keeping track of the last-ip in Intel PT packets. */
41 uint64_t ip; member in struct:pt_last_ip
53 /* Initialize (or reset) the last-ip. */
56 /* Query the last-ip.
58 * If @ip is not NULL, provides the last-ip in @ip on success.
62 * Returns -pte_noip if there is no last-ip.
63 * Returns -pte_ip_suppressed if the last-ip has been suppressed.
65 extern int pt_last_ip_query(uint64_t *ip, cons
[all...]
/freebsd-head/contrib/ipfilter/lib/
H A Dhostname.c14 hostname(int family, void *ip) argument
24 ipa.s_addr = *(u_32_t *)ip;
31 hp = gethostbyaddr(ip, 4, AF_INET);
53 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1);
H A Dprintpacket.c25 ip_t *ip; local
27 ip = MTOD(m, ip_t *);
29 if (IP_V(ip) == 6) {
31 len = ntohs(((ip6_t *)ip)->ip6_plen);
33 len = ntohs(((u_short *)ip)[2]);
37 len = ntohs(ip->ip_len);
61 if (IP_V(ip) == 6) {
73 off = ntohs(ip->ip_off);
74 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) <<
[all...]
/freebsd-head/contrib/traceroute/
H A Drip_output.c7 register struct ip *ip; local
38 m->m_off = MMAXOFF - sizeof(struct ip);
39 m->m_len = sizeof(struct ip);
42 ip = mtod(m, struct ip *);
43 ip->ip_tos = 0;
44 ip->ip_off = 0;
45 ip->ip_p = proto;
46 ip
[all...]
/freebsd-head/contrib/sendmail/libsm/
H A Dt-inet6_ntop.c44 char *ip, *ipf, ipv6str[INET6_ADDRSTRLEN]; local
46 for (i = 0; (ip = ipv6f[i]) != NULL; i++) {
47 r = inet_pton(AF_INET6, ip, &addr.sin6_addr);
51 SM_TEST(strcmp(ipf, ip) == 0);
/freebsd-head/sys/ufs/ufs/
H A Dufs_vfsops.c232 struct inode *ip; local
241 ip = VTOI(nvp);
242 if (ip->i_mode == 0 || ip->i_gen != ufhp->ufid_gen ||
243 ip->i_effnlink <= 0) {
249 vnode_create_vobject(*vpp, DIP(ip, i_size), curthread);
H A Dufs_inode.c71 struct inode *ip; local
77 ip = VTOI(vp);
78 if (UFS_RDONLY(ip))
80 if (ip->i_mode == 0 || ip->i_nlink <= 0 ||
81 (ip->i_effnlink == 0 && DOINGSOFTDEP(vp)) ||
82 (ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_MODIFIED |
84 (ip->i_effnlink <= 0 && (ip->i_size != 0 || (I_IS_UFS2(ip)
111 struct inode *ip = VTOI(vp); local
227 struct inode *ip = VTOI(vp); local
258 UFS_IFREE(ITOUMP(ip), ip); local
[all...]
/freebsd-head/contrib/processor-trace/libipt/src/
H A Dpt_retstack.c51 int pt_retstack_pop(struct pt_retstack *retstack, uint64_t *ip) argument
67 if (ip)
68 *ip = retstack->stack[top];
73 int pt_retstack_push(struct pt_retstack *retstack, uint64_t ip) argument
83 retstack->stack[top] = ip;
/freebsd-head/contrib/libxo/tests/core/
H A Dtest_08.c35 struct item *ip; local
74 for (ip = list; ip->i_title; ip++) {
78 ip->i_title, ip->i_count);
94 for (ip = list; ip->i_title; ip++) {
98 ip
[all...]
H A Dtest_09.c35 struct item *ip; local
73 for (ip = list; ip->i_title; ip++) {
74 xo_emit("Name: {l:name/%-10s/%s}\n", ip->i_title);
84 for (ip = list; ip->i_title; ip++) {
85 xo_emit("Name: {l:item/%-10s/%s}\n", ip->i_title);
96 for (ip
[all...]
/freebsd-head/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_inttab.c38 dt_inttab_t *ip; local
42 if ((ip = dt_zalloc(dtp, sizeof (dt_inttab_t))) == NULL ||
43 (ip->int_hash = dt_zalloc(dtp, sizeof (void *) * len)) == NULL) {
44 dt_free(dtp, ip);
48 ip->int_hdl = dtp;
49 ip->int_hashlen = len;
51 return (ip);
55 dt_inttab_destroy(dt_inttab_t *ip) argument
59 for (hp = ip->int_head; hp != NULL; hp = np) {
61 dt_free(ip
69 dt_inttab_insert(dt_inttab_t *ip, uint64_t value, uint_t flags) argument
103 dt_inttab_size(const dt_inttab_t *ip) argument
109 dt_inttab_write(const dt_inttab_t *ip, uint64_t *dst) argument
[all...]
/freebsd-head/sbin/natd/
H A Dicmp.c31 #include <netinet/ip.h>
39 int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu)
42 struct ip* ip; local
64 ip = (struct ip*) icmpBuf;
65 icmp = (struct icmp*) (icmpBuf + sizeof (struct ip));
94 memcpy (ip, failedDgram, sizeof (struct ip));
96 ip
[all...]
/freebsd-head/sys/contrib/ipfilter/netinet/
H A Dip_netbios_pxy.c79 ip_t *ip; local
93 ip = fin->fin_ip;
95 off = (char *)udp - (char *)ip + sizeof(*udp) + fin->fin_ipoff;
99 * ip header;
108 dgmbuf[0] = (char)((ip->ip_src.s_addr ) &0xFF);
109 dgmbuf[1] = (char)((ip->ip_src.s_addr >> 8) &0xFF);
110 dgmbuf[2] = (char)((ip->ip_src.s_addr >> 16)&0xFF);
111 dgmbuf[3] = (char)((ip->ip_src.s_addr >> 24)&0xFF);
/freebsd-head/contrib/amd/wire-test/
H A Dwire-test.c57 struct sockaddr_in *ip; local
94 ip = (struct sockaddr_in *) xmalloc(sizeof(struct sockaddr_in));
95 memset((voidp) ip, 0, sizeof(*ip));
97 ip->sin_family = AF_INET;
98 memmove((voidp) &ip->sin_addr, (voidp) hp->h_addr, sizeof(ip->sin_addr));
99 ip->sin_port = htons(NFS_PORT);
105 ret = get_nfs_version(testhost, ip, nv, proto, 0);
115 ret = get_nfs_version(testhost, ip, n
[all...]
/freebsd-head/bin/stty/
H A Dcchar.c96 csearch(char ***argvp, struct info *ip) argument
120 ip->t.c_cc[cp->sub] = _POSIX_VDISABLE;
132 ip->t.c_cc[cp->sub] = val;
134 ip->t.c_cc[cp->sub] = (arg[1] == '?') ? 0177 :
137 ip->t.c_cc[cp->sub] = arg[0];
138 ip->set = 1;
/freebsd-head/sys/i386/include/
H A Din_cksum.h61 in_cksum_hdr(const struct ip *ip) argument
73 : "g" (((const u_int32_t *)ip)[0]),
74 "g" (((const u_int32_t *)ip)[1]),
75 "g" (((const u_int32_t *)ip)[2]),
76 "g" (((const u_int32_t *)ip)[3]),
77 "g" (((const u_int32_t *)ip)[4])
88 in_cksum_update(struct ip *ip) argument
91 __tmpsum = (int)ntohs(ip
[all...]
/freebsd-head/usr.sbin/lpr/lpd/
H A Dmodes.c204 msearch(char *str, struct termios *ip) argument
210 ip->c_cflag &= ~mp->unset;
211 ip->c_cflag |= mp->set;
216 ip->c_iflag &= ~mp->unset;
217 ip->c_iflag |= mp->set;
222 ip->c_lflag &= ~mp->unset;
223 ip->c_lflag |= mp->set;
228 ip->c_oflag &= ~mp->unset;
229 ip->c_oflag |= mp->set;
/freebsd-head/usr.sbin/makefs/ffs/
H A Dufs_bmap.c71 ufs_getlbns(struct inode *ip, daddr_t bn, struct indir *ap, int *nump) argument
79 lognindir = ffs(NINDIR(ip->i_fs)) - 1;
130 off = (bn >> lbc) & (NINDIR(ip->i_fs) - 1);
/freebsd-head/sys/netinet/libalias/
H A Dalias_dummy.c50 #include <netinet/ip.h>
62 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah);
91 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah)
151 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah) argument
/freebsd-head/usr.sbin/ppp/
H A Diplist.h32 struct in_addr ip; member in struct:iplist_cur

Completed in 457 milliseconds

1234567891011>>