/freebsd/sys/netinet/libalias/ |
H A D | alias_local.h | 80 struct in_addr alias_addr; 92 struct in_addr aliasAddress; 95 struct in_addr targetAddress; 139 struct in_addr true_addr; /* in network byte order. */ 237 AddLink(struct libalias *la, struct in_addr src_addr, struct in_addr dst_addr, 238 struct in_addr alias_addr, u_short src_port, u_short dst_port, 241 FindIcmpIn(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr, 244 FindIcmpOut(struct libalias *la, struct in_addr _src_addr, struct in_addr _dst_addr, 247 FindFragmentIn1(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr, 250 FindFragmentIn2(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr, [all …]
|
H A D | alias.h | 86 void LibAliasSetAddress(struct libalias *, struct in_addr _addr); 102 struct in_addr _addr, unsigned short _port); 103 struct alias_link * LibAliasRedirectAddr(struct libalias *, struct in_addr _src_addr, 104 struct in_addr _alias_addr); 107 struct alias_link * LibAliasRedirectPort(struct libalias *, struct in_addr _src_addr, 108 unsigned short _src_port, struct in_addr _dst_addr, 109 unsigned short _dst_port, struct in_addr _alias_addr, 111 struct alias_link * LibAliasRedirectProto(struct libalias *, struct in_addr _src_addr, 112 struct in_addr _dst_addr, struct in_addr _alias_addr, 122 void LibAliasSetTarget(struct libalias *, struct in_addr _target_addr);
|
H A D | alias_db.h | 190 static struct in_addr const ANY_ADDR = { INADDR_ANY }; 248 struct in_addr addr; 257 struct in_addr src_addr; 258 struct in_addr dst_addr; 259 struct in_addr alias_addr; 260 struct in_addr proxy_addr; 307 struct in_addr frag_addr; 330 StartPointIn(struct libalias *, struct in_addr, u_short, int, int); 411 struct in_addr, struct in_addr, struct in_addr, 415 FindLinkOut(struct libalias *, struct in_addr, struct in_addr, u_short, u_short, int, int); [all …]
|
H A D | alias_db.c | 99 struct in_addr alias_addr, u_short alias_port, int link_type, in StartPointIn() 343 struct in_addr dst_addr, in FindNewPortGroup() 344 struct in_addr alias_addr, in FindNewPortGroup() 562 AddLink(struct libalias *la, struct in_addr src_addr, struct in_addr dst_addr, in AddLink() 563 struct in_addr alias_addr, u_short src_port, u_short dst_port, in AddLink() 718 struct in_addr src_addr, in ReLink() 719 struct in_addr dst_addr, in ReLink() 720 struct in_addr alias_addr, in ReLink() 746 _SearchLinkOut(struct libalias *la, struct in_addr src_addr, in _SearchLinkOut() 747 struct in_addr dst_addr, in _SearchLinkOut() [all …]
|
H A D | alias_proxy.c | 101 struct in_addr server_addr; 103 struct in_addr src_addr; 104 struct in_addr src_mask; 106 struct in_addr dst_addr; 107 struct in_addr dst_mask; 135 static int IpMask(int, struct in_addr *); 136 static int IpAddr(char *, struct in_addr *); 145 IpMask(int nbits, struct in_addr *mask) in IpMask() 162 IpAddr(char *s, struct in_addr *addr) in IpAddr() 455 ProxyCheck(struct libalias *la, struct in_addr *proxy_server_addr, in ProxyCheck() [all …]
|
/freebsd/sbin/ipf/ipsend/ |
H A D | ipsend.h | 32 extern int send_ether(int, char *, int, struct in_addr); 33 extern int send_ip(int, int, ip_t *, struct in_addr, int); 34 extern int send_tcp(int, int, ip_t *, struct in_addr); 35 extern int send_udp(int, int, ip_t *, struct in_addr); 36 extern int send_icmp(int, int, ip_t *, struct in_addr); 37 extern int send_packet(int, int, ip_t *, struct in_addr); 38 extern int send_packets(char *, int, ip_t *, struct in_addr); 45 extern int ip_resend(char *, int, struct ipread *, struct in_addr, char *); 47 extern void ip_test1(char *, int, ip_t *, struct in_addr, int); 48 extern void ip_test2(char *, int, ip_t *, struct in_addr, int); [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | libslirp.h | 148 struct in_addr vnetwork; 150 struct in_addr vnetmask; 152 struct in_addr vhost; 170 struct in_addr vdhcp_start; 172 struct in_addr vnameserver; 231 Slirp *slirp_init(int restricted, bool in_enabled, struct in_addr vnetwork, 232 struct in_addr vnetmask, struct in_addr vhost, 237 struct in_addr vdhcp_start, struct in_addr vnameserver, 280 int slirp_add_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr, 281 int host_port, struct in_addr guest_addr, int guest_port); [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | ncpaddr.h | 36 struct in_addr ipaddr; 37 struct in_addr mask; 52 struct in_addr ip4addr; 68 extern void ncpaddr_setip4(struct ncpaddr *, struct in_addr); 69 extern int ncpaddr_getip4(const struct ncpaddr *, struct in_addr *); 85 extern int ncprange_containsip4(const struct ncprange *, struct in_addr); 91 extern void ncprange_setip4(struct ncprange *, struct in_addr, struct in_addr); 92 extern void ncprange_setip4host(struct ncprange *, struct in_addr); 93 extern int ncprange_setip4mask(struct ncprange *, struct in_addr); 99 extern int ncprange_getip4addr(const struct ncprange *, struct in_addr *); [all …]
|
H A D | ipcp.h | 56 struct in_addr netmask; /* Iface netmask (unused by most OSs) */ 60 struct in_addr TriggerAddress; /* Address to suggest in REQ */ 64 struct in_addr dns[2]; /* DNS addresses offered */ 66 struct in_addr nbns[2]; /* NetBIOS NS addresses offered */ 80 struct in_addr dns[2]; /* Current DNS addresses */ 88 struct in_addr peer_ip; /* IP address he's willing to use */ 91 struct in_addr ifmask; /* Interface netmask */ 93 struct in_addr my_ip; /* IP address I'm willing to use */ 121 extern int ipcp_UseHisIPaddr(struct bundle *, struct in_addr); 127 extern struct in_addr addr2mask(struct in_addr);
|
H A D | iplist.h | 30 struct in_addr ip; 46 extern struct in_addr iplist_setcurpos(struct iplist *, long); 47 extern struct in_addr iplist_setrandpos(struct iplist *); 48 extern int iplist_ip2pos(struct iplist *, struct in_addr); 49 extern struct in_addr iplist_next(struct iplist *);
|
H A D | radius.h | 50 struct in_addr ip; /* FRAMED IP */ 51 struct in_addr mask; /* FRAMED Netmask */ 90 struct in_addr addr; 91 struct in_addr mask; 116 extern void radius_Account_Set_Ip(struct radacct *, struct in_addr *, 117 struct in_addr *);
|
/freebsd/sys/netinet/ |
H A D | in.h | 80 struct in_addr { struct 98 struct in_addr sin_addr; 555 struct in_addr imr_multiaddr; /* IP multicast address of group */ 556 struct in_addr imr_interface; /* local IP address of interface */ 565 struct in_addr imr_multiaddr; /* IP multicast address of group */ 566 struct in_addr imr_address; /* local IP address of interface */ 574 struct in_addr imr_multiaddr; /* IP multicast address of group */ 575 struct in_addr imr_sourceaddr; /* IP address of source */ 576 struct in_addr imr_interface; /* local IP address of interface */ 620 int setipv4sourcefilter(int, struct in_addr, struct in_addr, uint32_t, [all …]
|
H A D | ip_mroute.h | 97 struct in_addr vifc_lcl_addr; /* local interface address */ 98 struct in_addr vifc_rmt_addr; /* remote address (tunnels only) */ 110 struct in_addr mfcc_origin; /* ip origin of mcasts */ 111 struct in_addr mfcc_mcastgrp; /* multicast group associated*/ 122 struct in_addr mfcc_origin; /* ip origin of mcasts */ 123 struct in_addr mfcc_mcastgrp; /* multicast group associated*/ 129 struct in_addr mfcc_rp; /* the RP address */ 186 struct in_addr bu_src; /* source address */ 187 struct in_addr bu_dst; /* destination address */ 233 struct in_addr src; [all …]
|
H A D | ip_options.c | 86 static void save_rte(struct mbuf *m, u_char *, struct in_addr); 107 struct in_addr *sin, dst; in ip_dooptions() 186 if (off > optlen - (int)sizeof(struct in_addr)) { in ip_dooptions() 252 sizeof(struct in_addr)); in ip_dooptions() 261 sizeof(struct in_addr)); in ip_dooptions() 265 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions() 289 if (off > optlen - (int)sizeof(struct in_addr)) in ip_dooptions() 300 sizeof(struct in_addr)); in ip_dooptions() 304 sizeof(struct in_addr)); in ip_dooptions() 310 cp[IPOPT_OFFSET] += sizeof(struct in_addr); in ip_dooptions() [all …]
|
H A D | in_rss.h | 38 uint32_t rss_hash_ip4_4tuple(struct in_addr src, u_short srcport, 39 struct in_addr dst, u_short dstport); 40 uint32_t rss_hash_ip4_2tuple(struct in_addr src, struct in_addr dst); 48 int rss_proto_software_hash_v4(struct in_addr src, 49 struct in_addr dst, u_short src_port, u_short dst_port, 54 uint32_t xps_proto_software_hash_v4(struct in_addr s, struct in_addr d,
|
H A D | in_jail.c | 69 return (((const struct in_addr *)prison_ip_get0(pr, PR_INET))->s_addr); in prison_primary_ip4() 82 iaa = ntohl(((const struct in_addr *)ip1)->s_addr); in prison_qcmp_v4() 83 iab = ntohl(((const struct in_addr *)ip2)->s_addr); in prison_qcmp_v4() 100 in_addr_t ia = ((const struct in_addr *)ip)->s_addr; in prison_valid_v4() 119 prison_get_ip4(struct ucred *cred, struct in_addr *ia) in prison_get_ip4() 152 prison_saddrsel_ip4(struct ucred *cred, struct in_addr *ia) in prison_saddrsel_ip4() 155 struct in_addr lia; in prison_saddrsel_ip4() 215 prison_local_ip4(struct ucred *cred, struct in_addr *ia) in prison_local_ip4() 218 struct in_addr ia0; in prison_local_ip4() 266 prison_remote_ip4(struct ucred *cred, struct in_addr *ia) in prison_remote_ip4() [all …]
|
H A D | in_fib.h | 49 struct nhop_object *fib4_lookup(uint32_t fibnum, struct in_addr dst, 51 int fib4_check_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, 53 struct rtentry *fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, 55 struct nhop_object *fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst, 57 uint32_t fib4_calc_software_hash(struct in_addr src, struct in_addr dst,
|
/freebsd/sys/netgraph/ |
H A D | ng_nat.h | 62 struct in_addr local_addr; 63 struct in_addr alias_addr; 64 struct in_addr remote_addr; 87 struct in_addr local_addr; 88 struct in_addr alias_addr; 102 struct in_addr local_addr; 103 struct in_addr alias_addr; 104 struct in_addr remote_addr; 122 struct in_addr addr; 137 struct in_addr local_addr; [all …]
|
/freebsd/libexec/bootpd/ |
H A D | bootp.h | 50 struct in_addr bp_ciaddr; /* client IP address */ 51 struct in_addr bp_yiaddr; /* 'your' IP address */ 52 struct in_addr bp_siaddr; /* server IP address */ 53 struct in_addr bp_giaddr; /* gateway IP address */ 137 struct in_addr v_smask; /* Subnet mask */ 138 struct in_addr v_dgate; /* Default gateway */ 139 struct in_addr v_dns1, v_dns2; /* Domain name servers */ 140 struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */ 141 struct in_addr v_ts1, v_ts2; /* Time servers */
|
/freebsd/stand/libsa/ |
H A D | bootp.h | 34 struct in_addr bp_ciaddr; /* client IP address */ 35 struct in_addr bp_yiaddr; /* 'your' IP address */ 36 struct in_addr bp_siaddr; /* server IP address */ 37 struct in_addr bp_giaddr; /* gateway IP address */ 131 struct in_addr v_smask; /* Subnet mask */ 132 struct in_addr v_dgate; /* Default gateway */ 133 struct in_addr v_dns1, v_dns2; /* Domain name servers */ 134 struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */ 135 struct in_addr v_ts1, v_ts2; /* Time servers */
|
H A D | net.h | 87 extern struct in_addr myip; 88 extern struct in_addr rootip; 89 extern struct in_addr swapip; 90 extern struct in_addr gateip; 91 extern struct in_addr nameip; 92 extern struct in_addr servip; 99 u_char *arpwhohas(struct iodesc *, struct in_addr); 125 char *inet_ntoa(struct in_addr);
|
H A D | globals.c | 27 struct in_addr myip; /* my ip address */ 28 struct in_addr nameip; /* DNS server ip address */ 29 struct in_addr rootip; /* root ip address */ 30 struct in_addr swapip; /* swap ip address */ 31 struct in_addr gateip; /* gateway ip address */
|
/freebsd/tests/sys/netinet/libalias/ |
H A D | util.c | 42 struct in_addr masq = { htonl(0x01020304) }; 43 struct in_addr pub = { htonl(0x0102dead) }; 44 struct in_addr prv1 = { htonl(0x0a00dead) }; 45 struct in_addr prv2 = { htonl(0xac10dead) }; 46 struct in_addr prv3 = { htonl(0xc0a8dead) }; 47 struct in_addr cgn = { htonl(0x6440dead) }; 48 struct in_addr ext = { htonl(0x12345678) }; 49 struct in_addr ANY_ADDR = { 0 };
|
/freebsd/include/arpa/ |
H A D | inet.h | 109 struct in_addr { struct 146 /*const*/ char *inet_ntoa(struct in_addr); 152 int inet_aton(const char *, struct in_addr *); 153 in_addr_t inet_lnaof(struct in_addr); 154 struct in_addr inet_makeaddr(in_addr_t, in_addr_t); 156 in_addr_t inet_netof(struct in_addr); 160 char *inet_ntoa_r(struct in_addr, char *buf, socklen_t size);
|
/freebsd/tools/tools/mcgrab/ |
H A D | mcgrab.cc | 89 void grab(char *interface, struct in_addr *group, int number, int block) { in grab() 95 struct in_addr lgroup; in grab() 120 sizeof(struct in_addr)); in grab() 132 sizeof(struct in_addr)) < 0) { in grab() 161 struct in_addr *group = NULL; ///< the multicast group address in main() 171 group = new (struct in_addr ); in main()
|