Searched refs:ip (Results 226 - 250 of 1110) sorted by relevance

1234567891011>>

/freebsd-12-stable/contrib/tcpdump/
H A Dprint-tcp.c48 #include "ip.h"
59 const struct ip *ip, const struct tcphdr *tp,
141 register const struct ip *ip,
145 return nextproto4_cksum(ndo, ip, (const uint8_t *)tp, len, len,
165 register const struct ip *ip; local
177 ip = (const struct ip *)bp
140 tcp_cksum(netdissect_options *ndo, register const struct ip *ip, register const struct tcphdr *tp, register u_int len) argument
840 tcp_verify_signature(netdissect_options *ndo, const struct ip *ip, const struct tcphdr *tp, const u_char *data, int length, const u_char *rcvsig) argument
[all...]
/freebsd-12-stable/contrib/mtree/
H A Dspec.c540 set(char *t, NODE *ip) argument
553 ip->flags |= type = parsekey(kw, &value);
563 ip->cksum = strtoul(val, &ep, 10);
568 ip->st_rdev = parsedev(val);
572 ip->st_flags = 0;
573 else if (string_to_flags(&val, &ip->st_flags, NULL)
578 ip->st_gid = (gid_t)strtoul(val, &ep, 10);
587 ip->st_gid = gid;
594 if ((ip->md5digest = strdup(md)) == NULL)
601 ip
701 unset(char *t, NODE *ip) argument
[all...]
/freebsd-12-stable/sys/netinet/libalias/
H A Dalias_cuseeme.c46 #include <netinet/ip.h>
61 AliasHandleCUSeeMeOut(struct libalias *la, struct ip *pip,
65 AliasHandleCUSeeMeIn(struct libalias *la, struct ip *pip,
80 protohandlerin(struct libalias *la, struct ip *pip, struct alias_data *ah)
88 protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah)
178 AliasHandleCUSeeMeOut(struct libalias *la, struct ip *pip, struct alias_link *lnk)
201 AliasHandleCUSeeMeIn(struct libalias *la, struct ip *pip, struct in_addr original_addr)
H A Dalias_pptp.c70 AliasHandlePptpOut(struct libalias *, struct ip *, struct alias_link *);
73 AliasHandlePptpIn(struct libalias *, struct ip *, struct alias_link *);
76 AliasHandlePptpGreOut(struct libalias *, struct ip *);
79 AliasHandlePptpGreIn(struct libalias *, struct ip *);
99 protohandlerin(struct libalias *la, struct ip *pip, struct alias_data *ah)
106 protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah)
113 protohandlergrein(struct libalias *la, struct ip *pip, struct alias_data *ah)
122 protohandlergreout(struct libalias *la, struct ip *pip, struct alias_data *ah)
289 static PptpCallId AliasVerifyPptp(struct ip *, u_int16_t *);
293 struct ip *pi
[all...]
/freebsd-12-stable/lib/libutil/
H A Dlogin_ok.c177 login_hostok(login_cap_t *lc, const char *host, const char *ip, argument
183 ((host != NULL && *host != '\0') || (ip != NULL && *ip != '\0'))) {
187 if (hl != NULL && !login_str2inlist(hl, host, ip, FNM_CASEFOLD))
192 if (hl != NULL && login_str2inlist(hl, host, ip, FNM_CASEFOLD))
207 auth_hostok(login_cap_t *lc, const char *host, const char *ip) argument
209 return login_hostok(lc, host, ip, "host.allow", "host.deny");
H A Drealhostname.c51 realhostname(char *host, size_t hsize, const struct in_addr *ip) argument
58 hp = gethostbyaddr((const char *)ip, sizeof(*ip), AF_INET);
75 if (!memcmp(*hp->h_addr_list, ip, sizeof(*ip))) {
83 strncpy(host, inet_ntoa(*ip), hsize);
/freebsd-12-stable/contrib/ntp/ntpd/
H A Dntp_request.c671 struct info_peer_list * ip; local
674 ip = (struct info_peer_list *)prepare_pkt(srcadr, inter, inpkt,
676 for (pp = peer_list; pp != NULL && ip != NULL; pp = pp->p_link) {
680 ip->addr6 = SOCK_ADDR6(&pp->srcadr);
681 ip->v6_flag = 1;
683 ip->addr = NSRCADR(&pp->srcadr);
685 ip->v6_flag = 0;
688 ip->port = NSRCPORT(&pp->srcadr);
689 ip->hmode = pp->hmode;
690 ip
809 struct info_peer * ip; local
953 struct info_peer_stats *ip; local
[all...]
/freebsd-12-stable/contrib/processor-trace/libipt/test/src/
H A Dptunit-packet.c260 static struct ptunit_result ip(struct packet_fixture *pfix, argument
263 uint64_t ip)
266 pfix->packet[0].payload.ip.ipc = ipc;
267 pfix->packet[0].payload.ip.ip = ip;
398 static struct ptunit_result exstop(struct packet_fixture *pfix, int ip) argument
401 pfix->packet[0].payload.exstop.ip = ip ? 1 : 0;
444 int ip)
443 ptw(struct packet_fixture *pfix, uint8_t plc, int ip) argument
[all...]
/freebsd-12-stable/sys/contrib/ipfilter/netinet/
H A Dip_raudio_pxy.c203 ip_t *ip; local
272 ip = fin->fin_ip;
273 swp = ip->ip_p;
274 swa = ip->ip_src;
275 swb = ip->ip_dst;
277 ip->ip_p = IPPROTO_UDP;
278 ip->ip_src = nat->nat_ndstip;
279 ip->ip_dst = nat->nat_odstip;
290 slen = ip->ip_len;
291 ip
[all...]
/freebsd-12-stable/contrib/ipfilter/iplang/
H A Diplang_y.y32 #include <netinet/ip.h>
67 ip_t *ip = NULL;
836 ip = (ip_t *)new_header(IPPROTO_IP);
837 ip->ip_v = IPVERSION;
838 ip->ip_hl = sizeof(ip_t) >> 2;
839 ip->ip_len = sizeof(ip_t);
840 ip->ip_ttl = 63;
841 ip->ip_id = htons(id++);
851 ip->ip_p = pr->p_proto;
853 if (!(ip
[all...]
/freebsd-12-stable/sys/contrib/zstd/lib/compress/
H A Dzstd_opt.c244 /* Update hashTable3 up to ip (excluded)
246 static U32 ZSTD_insertAndFindFirstIndexHash3 (ZSTD_matchState_t* ms, const BYTE* const ip) argument
252 U32 const target = ms->nextToUpdate3 = (U32)(ip - base);
253 size_t const hash3 = ZSTD_hash3Ptr(ip, hashLog3);
269 * ip : assumed <= iend-8 .
273 const BYTE* const ip, const BYTE* const iend,
278 size_t const h = ZSTD_hashPtr(ip, hashLog, mls);
290 const U32 current = (U32)(ip-base);
308 assert(ip <= iend-8); /* required for h calculation */
340 matchLength += ZSTD_count(ip
271 ZSTD_insertBt1( ZSTD_matchState_t* ms, ZSTD_compressionParameters const* cParams, const BYTE* const ip, const BYTE* const iend, U32 const mls, U32 const extDict) argument
381 ZSTD_updateTree_internal( ZSTD_matchState_t* ms, ZSTD_compressionParameters const* cParams, const BYTE* const ip, const BYTE* const iend, const U32 mls, const U32 extDict) argument
397 ZSTD_updateTree( ZSTD_matchState_t* ms, ZSTD_compressionParameters const* cParams, const BYTE* ip, const BYTE* iend) argument
405 ZSTD_insertBtAndGetAllMatches( ZSTD_matchState_t* ms, ZSTD_compressionParameters const* cParams, const BYTE* const ip, const BYTE* const iLimit, int const extDict, U32 rep[ZSTD_REP_NUM], U32 const ll0, ZSTD_match_t* matches, const U32 lengthToBeat, U32 const mls ) argument
561 ZSTD_BtGetAllMatches( ZSTD_matchState_t* ms, ZSTD_compressionParameters const* cParams, const BYTE* ip, const BYTE* const iHighLimit, int const extDict, U32 rep[ZSTD_REP_NUM], U32 const ll0, ZSTD_match_t* matches, U32 const lengthToBeat) argument
674 const BYTE* ip = istart; local
[all...]
/freebsd-12-stable/sbin/dhclient/
H A Ddispatch.c214 struct interface_info *ip = l->local; local
216 if (ip == NULL || ip->dead)
245 struct interface_info *ip; local
246 ip = l->local;
249 if (ip && (l->handler != got_one ||
250 !ip->dead))
277 struct interface_info *ip = l->local; local
279 if ((result = receive_packet(ip, u.packbuf, sizeof(u), &from,
281 warning("receive_packet failed on %s: %s", ip
[all...]
/freebsd-12-stable/sys/netpfil/ipfw/nat64/
H A Dnat64clat.c51 #include <netinet/ip.h>
92 struct ip *ip; local
94 ip = mtod(m, struct ip*);
96 if (nat64_check_ip4(ip->ip_src.s_addr) != 0 ||
97 nat64_check_ip4(ip->ip_dst.s_addr) != 0 ||
98 nat64_check_private_ip4(&cfg->base, ip->ip_dst.s_addr) != 0)
102 nat64_embed_ip4(&saddr, cfg->base.clat_plen, ip->ip_src.s_addr);
104 nat64_embed_ip4(&daddr, cfg->base.plat_plen, ip
[all...]
H A Dnat64stl.c50 #include <netinet/ip.h>
91 struct ip *ip; local
93 ip = mtod(m, struct ip*);
94 if (nat64_check_ip4(ip->ip_src.s_addr) != 0 ||
95 nat64_check_ip4(ip->ip_dst.s_addr) != 0 ||
96 nat64_check_private_ip4(&cfg->base, ip->ip_src.s_addr) != 0 ||
97 nat64_check_private_ip4(&cfg->base, ip->ip_dst.s_addr) != 0)
105 nat64_embed_ip4(&saddr, cfg->base.plat_plen, ip
[all...]
/freebsd-12-stable/usr.sbin/ctm/ctm_smail/
H A Dctm_smail.c319 unsigned char *ip; local
346 ip = inbuf;
350 *op++ = to_b64[ip[0] >> 2];
351 *op++ = to_b64[(ip[0] << 4 & 0x3f) | ip[1] >> 4];
352 *op++ = to_b64[(ip[1] << 2 & 0x3f) | ip[2] >> 6];
353 *op++ = to_b64[ip[2] & 0x3f];
354 ip += 3;
359 *op++ = to_b64[ip[
[all...]
/freebsd-12-stable/sys/contrib/zstd/lib/legacy/
H A Dzstd_v03.c1173 const BYTE* ip = istart; local
1183 bitStream = MEM_readLE32(ip);
1201 if (ip < iend-5)
1203 ip+=2;
1204 bitStream = MEM_readLE32(ip) >> bitCount;
1222 if ((ip <= iend-7) || (ip + (bitCount>>3) <= iend-4))
1224 ip += bitCount>>3;
1226 bitStream = MEM_readLE32(ip) >> bitCount;
1258 if ((ip <
1413 const BYTE* ip = istart; local
1534 const BYTE* ip = (const BYTE*) src; local
1616 const BYTE* ip = (const BYTE*) src; local
1803 const BYTE* ip = (const BYTE*) cSrc; local
1923 const BYTE* ip = (const BYTE*) src; local
2165 const BYTE* ip = (const BYTE*) cSrc; local
2382 const BYTE* ip = (const BYTE*)src; local
2477 const BYTE* ip = (const BYTE*)src; local
2550 const BYTE* ip = istart; local
2803 const BYTE* ip = (const BYTE*)seqStart; local
2874 const BYTE* ip = (const BYTE*)src; local
2888 const BYTE* ip = (const BYTE*)src; local
2952 const BYTE* ip = (const BYTE*)src; local
[all...]
/freebsd-12-stable/sys/netinet/
H A Dudp_usrreq.c81 #include <netinet/ip.h>
297 udp_append(struct inpcb *inp, struct ip *ip, struct mbuf *n, int off, argument
351 ip_savecontrol(inp, &opts, ip, n);
392 struct ip *ip; local
398 struct ip save_ip;
416 if (iphlen > sizeof (struct ip)) {
418 iphlen = sizeof(struct ip);
430 ip
782 struct ip *ip = vip; local
1528 struct ip *ip; local
[all...]
/freebsd-12-stable/sbin/fsck_ffs/
H A Dsuj.c726 * specified by ip. This follows the whole tree and honors di_size and
731 ino_blkatoff(union dinode *ip, ino_t ino, ufs_lbn_t lbn, int *frags) argument
743 if (lbn > lblkno(fs, ip->dp2.di_extsize - 1))
745 *frags = numfrags(fs, sblksize(fs, ip->dp2.di_extsize, lbn));
746 return (ip->dp2.di_extb[lbn]);
751 if (DIP(ip, di_mode) == IFLNK &&
752 DIP(ip, di_size) < fs->fs_maxsymlinklen)
755 *frags = numfrags(fs, sblksize(fs, DIP(ip, di_size), lbn));
756 return (DIP(ip, di_db[lbn]));
764 return (DIP(ip, di_i
786 union dinode *ip; local
1004 ino_visit(union dinode *ip, ino_t ino, ino_visitor visitor, int flags) argument
1079 union dinode *ip; local
1257 ino_reclaim(union dinode *ip, ino_t ino, int mode) argument
1290 union dinode *ip; local
1328 union dinode *ip; local
1495 union dinode *ip; local
1909 union dinode *ip; local
2358 suj_verifyino(union dinode *ip) argument
2661 union dinode *ip; local
[all...]
/freebsd-12-stable/contrib/bearssl/src/codec/
H A Dpemdec.c9 const unsigned char *ip; member in struct:__anon335
199 #define T0_ENTER(ip, rp, slot) do { \
205 *((rp) ++) = (uint32_t)((ip) - &t0_codeblock[0]) + (t0_lnum << 16); \
206 (ip) = t0_newip; \
214 t0ctx->ip = &t0_codeblock[0]; \
215 T0_ENTER(t0ctx->ip, t0ctx->rp, slot); \
226 const unsigned char *ip; local
273 ip = ((t0_context *)t0ctx)->ip;
279 t0x = T0_NEXT(&ip);
[all...]
/freebsd-12-stable/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);
/freebsd-12-stable/sys/dev/cxgbe/
H A Dt4_clip.c272 char ip[INET6_ADDRSTRLEN]; local
274 inet_ntop(AF_INET6, &ce->lip, &ip[0],
275 sizeof(ip));
279 __func__, ip, rc);
301 char ip[INET6_ADDRSTRLEN]; local
303 inet_ntop(AF_INET6, &ce->lip, &ip[0],
304 sizeof(ip));
306 __func__, ip, rc);
356 char ip[INET6_ADDRSTRLEN]; local
372 inet_ntop(AF_INET6, &ce->lip, &ip[
[all...]
/freebsd-12-stable/sys/dev/sfxge/
H A Dsfxge_mcdi.c234 sfxge_mcdi_ioctl(struct sfxge_softc *sc, sfxge_ioc_t *ip) argument
252 if (ip->u.mcdi.len > SFXGE_MCDI_MAX_PAYLOAD) {
258 if ((rc = copyin(ip->u.mcdi.payload, mcdibuf, ip->u.mcdi.len)) != 0) {
262 emr.emr_cmd = ip->u.mcdi.cmd;
264 emr.emr_in_length = ip->u.mcdi.len;
271 ip->u.mcdi.rc = emr.emr_rc;
272 ip->u.mcdi.cmd = emr.emr_cmd;
273 ip->u.mcdi.len = emr.emr_out_length_used;
274 if ((rc = copyout(mcdibuf, ip
[all...]
/freebsd-12-stable/tests/sys/netinet/libalias/
H A Dutil.c41 /* common ip ranges */
90 struct ip *
93 struct ip * p;
111 set_udp(struct ip *p, u_short sport, u_short dport) {
/freebsd-12-stable/tests/sys/netpfil/pf/
H A DCVE-2019-5598.py36 ip = packet.getlayer(sp.IP)
37 if not ip:
39 if ip.dst != args.to[0]:
/freebsd-12-stable/contrib/processor-trace/libipt/internal/include/
H A Dpt_block_decoder.h86 uint64_t ip; member in struct:pt_block_decoder

Completed in 504 milliseconds

1234567891011>>