Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 122) sorted by relevance

12345

/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_if.c54 i_ipadm_is_if_down(char *ifname, struct ifaddrs *ifa) in i_ipadm_is_if_down() argument
68 if (strcmp(cifname, ifname) == 0 && in i_ipadm_is_if_down()
84 i_ipadm_active_if_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_active_if_info() argument
114 if (ifname != NULL && strcmp(lifrp->lifr_name, ifname) != 0) in i_ipadm_active_if_info()
190 i_ipadm_persist_if_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_persist_if_info() argument
200 if (ifname != NULL) in i_ipadm_persist_if_info()
201 (void) strlcpy(getif.ia_ifname, ifname, LIFNAMSIZ); in i_ipadm_persist_if_info()
212 if (ifname != NULL) in i_ipadm_persist_if_info()
244 i_ipadm_get_all_if_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_get_all_if_info() argument
261 status = i_ipadm_active_if_info(iph, ifname, &aifinfo, lifc_flags); in i_ipadm_get_all_if_info()
[all …]
H A Dlibipadm.c304 i_ipadm_get_index(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_get_index() argument
311 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_index()
475 i_ipadm_is_loopback(const char *ifname) in i_ipadm_is_loopback() argument
479 return (strncmp(ifname, LOOPBACK_IF, len) == 0 && in i_ipadm_is_loopback()
480 (ifname[len] == '\0' || ifname[len] == IPADM_LOGICAL_SEP)); in i_ipadm_is_loopback()
492 i_ipadm_is_vni(const char *ifname) in i_ipadm_is_vni() argument
496 return (ifparse_ifspec(ifname, &ifsp) && in i_ipadm_is_vni()
504 i_ipadm_is_6to4(ipadm_handle_t iph, char *ifname) in i_ipadm_is_6to4() argument
515 dlstatus = dladm_name2info(iph->iph_dlh, ifname, &linkid, NULL, in i_ipadm_is_6to4()
533 i_ipadm_is_under_ipmp(ipadm_handle_t iph, const char *ifname) in i_ipadm_is_under_ipmp() argument
[all …]
H A Dipadm_prop.c379 const char *ifname = arg; in i_ipadm_set_mtu() local
400 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_mtu()
418 const char *ifname = arg; in i_ipadm_set_metric() local
432 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_metric()
449 const char *ifname = arg; in i_ipadm_set_usesrc() local
466 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_usesrc()
587 const char *ifname = arg; in i_ipadm_set_ifprop_flags() local
635 status = i_ipadm_set_flags(iph, ifname, af, on_flags, in i_ipadm_set_ifprop_flags()
698 const char *ifname = arg; in i_ipadm_set_forwarding() local
705 if (ifname != NULL) { in i_ipadm_set_forwarding()
[all …]
H A Dipadm_ngz.c72 char *ifname, in i_ipadm_rtioctl4() argument
125 w_ifp.sdl_index = if_nametoindex(ifname); in i_ipadm_rtioctl4()
151 char *ifname, in i_ipadm_rtioctl6() argument
201 w_ifp.sdl_index = if_nametoindex(ifname); in i_ipadm_rtioctl6()
381 char *ifname = nwd->ngz_ifname; in i_ipadm_zone_network_attr() local
400 if (ifname != NULL && strcmp(ifname, link) != 0) in i_ipadm_zone_network_attr()
433 if (ifname != NULL) { in i_ipadm_zone_network_attr()
449 ipadm_init_net_from_gz(ipadm_handle_t iph, char *ifname, in ipadm_init_net_from_gz() argument
460 if (ifname != NULL && in ipadm_init_net_from_gz()
461 i_ipadm_get_flags(iph, ifname, AF_INET, &flags) != IPADM_SUCCESS && in ipadm_init_net_from_gz()
[all …]
H A Dipadm_addr.c131 i_ipadm_init_addr(ipadm_addrobj_t ipaddr, const char *ifname, in i_ipadm_init_addr() argument
135 (void) strlcpy(ipaddr->ipadm_ifname, ifname, in i_ipadm_init_addr()
310 ipadm_add_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_add_aobjname() argument
317 (void) strlcpy(larg.ia_ifname, ifname, sizeof (larg.ia_ifname)); in ipadm_add_aobjname()
333 ipadm_delete_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_delete_aobjname() argument
338 i_ipadm_init_addr(&aobj, ifname, aobjname, atype); in ipadm_delete_aobjname()
349 i_ipadm_active_addr_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_active_addr_info() argument
384 if (ifname != NULL && strcmp(cifname, ifname) != 0) in i_ipadm_active_addr_info()
682 char *ifname = NULL; in i_ipadm_nvl2ainfo_persist() local
702 err = nvpair_value_string(nvp, &ifname); in i_ipadm_nvl2ainfo_persist()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Dif_mpadm.c79 const char *ifname; in main() local
93 ifname = optarg; in main()
97 ifname = optarg; in main()
119 (*ofuncp)(ifname, handle); in main()
132 is_offline(const char *ifname) in is_offline() argument
136 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in is_offline()
140 die("cannot get interface flags on %s", ifname); in is_offline()
148 do_offline(const char *ifname, ipmp_handle_t handle) in do_offline() argument
153 if (is_offline(ifname)) in do_offline()
154 die("interface %s is already offline\n", ifname); in do_offline()
[all …]
/titanic_41/usr/src/uts/common/io/dmfe/
H A Ddmfe_log.c34 const char *ifname; member
62 cmn_err(prtdata.level, prtdata.fmt, prtdata.ifname, buf); in dmfe_vprt()
77 prtdata.ifname = dmfep->ifname; in dmfe_warning()
90 cmn_err(CE_NOTE, "!%s: CR%d\t%08x", dmfep->ifname, i, reg); in dmfe_warning()
105 prtdata.ifname = dmfep->ifname; in dmfe_error()
125 prtdata.ifname = dmfep->ifname; in dmfe_notice()
145 prtdata.ifname = dmfep->ifname; in dmfe_log()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dl2_packet.c36 l2->ifname, dlpi_strerror(retval)); in link_init()
44 l2->ifname, dlpi_strerror(retval)); in link_init()
51 l2->ifname, dlpi_strerror(retval)); in link_init()
56 l2->ifname, sizeof (l2->own_addr)); in link_init()
82 "message on %s: %s", l2->ifname, dlpi_strerror(retval)); in l2_packet_send()
101 "message on %s: %s", l2->ifname, dlpi_strerror(retval)); in l2_packet_receive()
117 l2_packet_init(const char *ifname, unsigned short protocol, in l2_packet_init() argument
128 (void) strlcpy(l2->ifname, ifname, sizeof (l2->ifname)); in l2_packet_init()
132 retval = dlpi_open(l2->ifname, &l2->dh, DLPI_RAW); in l2_packet_init()
135 l2->ifname, dlpi_strerror(retval)); in l2_packet_init()
/titanic_41/usr/src/cmd/svc/shell/
H A Dnet_include.sh163 /sbin/ipmpstat -gP -o groupname,group | while IFS=: read name ifname; do
165 echo "$ifname"
271 for ifname in "$@"; do
272 if if_comp "$physical" $ifname; then
273 get_hostname_ipmpinfo $ifname $type group
487 for ifname in $failed; do
488 in_list if_comp $ifname $processed && continue
490 group=`get_group $ifname`
492 in_list physical_comp $ifname $processed || {
493 echo " $ifname (not moved -- not" \
[all …]
/titanic_41/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c66 struct in_addr *mybraddr, struct in_addr *gateway, char *ifname) in kdlifconfig() argument
94 if (rc = kifioctl(tiptr, SIOCSLIFNETMASK, &sbuf, ifname)) { in kdlifconfig()
114 if (rc = kifioctl(tiptr, SIOCSLIFADDR, &sbuf, ifname)) { in kdlifconfig()
129 ifname)) { in kdlifconfig()
138 if (rc = ksetifflags(tiptr, IFF_UP, ifname)) { in kdlifconfig()
155 if (rc = kifioctl(tiptr, SIOCADDRT, &sbuf, ifname)) { in kdlifconfig()
163 kifioctl(TIUSER *tiptr, int cmd, struct netbuf *nbuf, char *ifname) in kifioctl() argument
199 (void) strncpy((caddr_t)&lifr.lifr_name, ifname, in kifioctl()
214 ksetifflags(TIUSER *tiptr, uint_t value, char *ifname) in ksetifflags() argument
220 if (ifname == NULL) { in ksetifflags()
[all …]
/titanic_41/usr/src/lib/libdscp/
H A Dlibdscp.c249 char ifname[LIFNAMSIZ]; in dscpAddr() local
261 if (get_ifname(ifname) != 0) { in dscpAddr()
276 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
295 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
359 get_ifname(char *ifname) in get_ifname() argument
373 (void) memset(ifname, 0, LIFNAMSIZ); in get_ifname()
395 i = read(fd, &ifname[count], size - count); in get_ifname()
414 if (isalnum(ifname[i]) != 0) { in get_ifname()
427 if (isalnum(ifname[i]) == 0) { in get_ifname()
438 (void) memmove(ifname, &ifname[begin], len); in get_ifname()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_ip.c146 nwamd_get_dhcpinfo_data(const char *sym_name, char *ifname) in nwamd_get_dhcpinfo_data() argument
159 if (ifname == NULL) in nwamd_get_dhcpinfo_data()
160 ifname = ""; in nwamd_get_dhcpinfo_data()
176 request = dhcp_ipc_alloc_request(DHCP_GET_TAG, ifname, &optnum, in nwamd_get_dhcpinfo_data()
591 addrinfo_for_addr(const struct sockaddr_storage *caddr, const char *ifname, in addrinfo_for_addr() argument
597 ipstatus = ipadm_addr_info(ipadm_handle, ifname, &addrinfo, 0, 0); in addrinfo_for_addr()
601 ifname, ipadm_status2str(ipstatus)); in addrinfo_for_addr()
637 addrinfo_for_ipaddr(ipadm_addrobj_t ipaddr, const char *ifname, in addrinfo_for_ipaddr() argument
649 ipstatus = ipadm_addr_info(ipadm_handle, ifname, &addrinfo, 0, 0); in addrinfo_for_ipaddr()
653 ifname, ipadm_status2str(ipstatus)); in addrinfo_for_ipaddr()
[all …]
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_nic.c336 char *ifname; in smb_nic_addhost() local
349 ifname = (char *)if_names[i]; in smb_nic_addhost()
350 if ((ifname == NULL) || (*ifname == '\0')) in smb_nic_addhost()
352 buflen += strlen(ifname) + 1; in smb_nic_addhost()
358 ifname = if_list; in smb_nic_addhost()
360 ifname += snprintf(ifname, buflen, "%s,", if_names[i]); in smb_nic_addhost()
362 (void) snprintf(ifname, buflen, "%s", if_names[i]); in smb_nic_addhost()
407 char *ifname; in smb_nic_list_create() local
438 ifname = iflist->if_names[i]; in smb_nic_list_create()
439 if (smb_nic_getinfo(ifname, nc, AF_INET) != in smb_nic_list_create()
[all …]
/titanic_41/usr/src/uts/common/inet/udp/
H A Dudp_tunables.c35 const char *ifname, const void *pval, uint_t flags) in udp_set_buf_prop() argument
38 cr, pinfo, ifname, pval, flags)); in udp_set_buf_prop()
42 udp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in udp_get_buf_prop() argument
46 pinfo, ifname, val, psize, flags)); in udp_get_buf_prop()
56 const char *ifname, const void *pval, uint_t flags) in udp_smallest_anon_set() argument
74 const char *ifname, const void *pval, uint_t flags) in udp_largest_anon_set() argument
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dprintaddr.c13 void printaddr(v, type, ifname, addr, mask) in printaddr() argument
15 char *ifname;
27 printf("%s", ifname);
61 printf("%s/%s", ifname, suffix);
H A Dprintactiveaddr.c18 printactiveaddress(v, fmt, addr, ifname) in printactiveaddress() argument
22 char *ifname;
31 printaddr(v, FRI_NORMAL, ifname, (u_32_t *)&addr->in6, NULL);
/titanic_41/usr/src/uts/common/inet/ip/
H A Dip_tunables.c50 const char *ifname, const void* pval, uint_t flags) in ip_set_forwarding() argument
69 per_ill = (ifname != NULL && ifname[0] != '\0'); in ip_set_forwarding()
89 if (per_ill && strcmp(ifname, ill->ill_name) != 0) in ip_set_forwarding()
99 ip_get_forwarding(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_forwarding() argument
123 if (ifname == NULL || ifname[0] == '\0') { in ip_get_forwarding()
139 if (strcmp(ifname, ill->ill_name) == 0) in ip_get_forwarding()
162 const char *ifname, const void* pval, uint_t flags) in ip_set_debug() argument
183 ip_get_debug(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_debug() argument
214 const char *ifname, const void* pval, uint_t flags) in ip_set_cgtp_filter() argument
270 ip_get_mtu(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_mtu() argument
[all …]
/titanic_41/usr/src/lib/libsocket/inet/
H A Dinterface_id.c50 if_nametoindex(const char *ifname) in if_nametoindex() argument
59 if ((ifname == NULL)||(*ifname == '\0')) { in if_nametoindex()
69 size = strlen(ifname); in if_nametoindex()
75 strncpy(lifr.lifr_name, ifname, size +1); in if_nametoindex()
108 if_indextoname(uint32_t ifindex, char *ifname) in if_indextoname() argument
200 (void) strncpy(ifname, lifrp->lifr_name, size + 1); in if_indextoname()
210 return (ifname); in if_indextoname()
/titanic_41/usr/src/uts/common/inet/
H A Dtunables.c77 const char *ifname, const void* pval, uint_t flags) in mod_set_boolean() argument
101 mod_get_boolean(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_boolean() argument
151 const char *ifname, const void *pval, uint_t flags) in mod_set_uint32() argument
168 const char *ifname, const void* pval, uint_t flags) in mod_set_aligned() argument
172 if ((err = mod_set_uint32(stack, cr, pinfo, ifname, pval, flags)) != 0) in mod_set_aligned()
190 mod_get_uint32(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_uint32() argument
239 mod_prop_info_t *pinfo, const char *ifname, const void *pval, uint_t flags) in mod_set_buf_prop() argument
269 mod_prop_info_t *pinfo, const char *ifname, void *pval, uint_t psize, in mod_get_buf_prop() argument
280 return (mod_get_uint32(stack, pinfo, ifname, pval, psize, flags)); in mod_get_buf_prop()
289 mod_get_allprop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_allprop() argument
[all …]
/titanic_41/usr/src/lib/libipmp/common/
H A Dipmp_admin.c77 ipmp_offline(ipmp_handle_t handle, const char *ifname, uint_t minred) in ipmp_offline() argument
83 (void) strlcpy(mio.mio_ifname, ifname, LIFNAMSIZ); in ipmp_offline()
88 ipmp_undo_offline(ipmp_handle_t handle, const char *ifname) in ipmp_undo_offline() argument
93 (void) strlcpy(miu.miu_ifname, ifname, LIFNAMSIZ); in ipmp_undo_offline()
/titanic_41/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c58 ifname_to_hostconf(const char *ifname, boolean_t isv6) in ifname_to_hostconf() argument
63 DHCP_HOSTCONF_PREFIX, ifname, in ifname_to_hostconf()
79 remove_hostconf(const char *ifname, boolean_t isv6) in remove_hostconf() argument
81 return (unlink(ifname_to_hostconf(ifname, isv6))); in remove_hostconf()
97 read_hostconf(const char *ifname, PKT_LIST **plpp, uint_t plplen, in read_hostconf() argument
109 fd = open(ifname_to_hostconf(ifname, isv6), O_RDONLY); in read_hostconf()
324 const char *ifname, in write_hostconf() argument
337 fd = open(ifname_to_hostconf(ifname, isv6), O_WRONLY|O_CREAT|O_TRUNC, in write_hostconf()
/titanic_41/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c47 const char *ifname, const void* pr_val, uint_t flags) in tcp_set_1948phrase() argument
66 const char *ifname, void *val, uint_t psize, uint_t flags) in tcp_listener_conf_get() argument
110 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_add() argument
159 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument
188 const char *ifname, const void *pval, uint_t flags) in tcp_set_buf_prop() argument
191 cr, pinfo, ifname, pval, flags)); in tcp_set_buf_prop()
195 tcp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in tcp_get_buf_prop() argument
199 pinfo, ifname, val, psize, flags)); in tcp_get_buf_prop()
209 const char *ifname, const void *pval, uint_t flags) in tcp_smallest_anon_set() argument
227 const char *ifname, const void *pval, uint_t flags) in tcp_largest_anon_set() argument
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c47 const char *ifname, void *val, uint_t psize, uint_t flags) in sctp_listener_conf_get() argument
91 const char *ifname, const void* pval, uint_t flags) in sctp_listener_conf_add() argument
140 const char *ifname, const void* pval, uint_t flags) in sctp_listener_conf_del() argument
169 const char *ifname, const void *pval, uint_t flags) in sctp_set_buf_prop() argument
172 stack, cr, pinfo, ifname, pval, flags)); in sctp_set_buf_prop()
176 sctp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in sctp_get_buf_prop() argument
180 stack, pinfo, ifname, val, psize, flags)); in sctp_get_buf_prop()
/titanic_41/usr/src/uts/common/io/rge/
H A Drge_log.c75 rge_log_data.who = rgep->ifname; in rge_notice()
95 rge_log_data.who = rgep->ifname; in rge_log()
115 rge_log_data.who = rgep->ifname; in rge_problem()
135 rge_log_data.who = rgep->ifname; in rge_error()
177 rge_log_data.who = rgep->ifname; in rge_db()
/titanic_41/usr/src/uts/common/io/nge/
H A Dnge_log.c76 nge_log_data.who = ngep->ifname; in nge_log()
96 nge_log_data.who = ngep->ifname; in nge_problem()
116 nge_log_data.who = ngep->ifname; in nge_error()
210 nge_log_data.who = ngep->ifname; in nge_db()

12345