Home
last modified time | relevance | path

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

12345

/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c73 i_ipadm_is_if_down(char *ifname, struct ifaddrs *ifa) in i_ipadm_is_if_down() argument
87 if (strcmp(cifname, ifname) == 0 && in i_ipadm_is_if_down()
103 i_ipadm_active_if_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_active_if_info() argument
133 if (ifname != NULL && strcmp(lifrp->lifr_name, ifname) != 0) in i_ipadm_active_if_info()
228 i_ipadm_persist_if_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_persist_if_info() argument
237 ifname, &ifs_info_nvl)) != IPADM_SUCCESS) in i_ipadm_persist_if_info()
382 i_ipadm_get_all_if_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_get_all_if_info() argument
399 status = i_ipadm_active_if_info(iph, ifname, &aifinfo, lifc_flags); in i_ipadm_get_all_if_info()
450 status = i_ipadm_persist_if_info(iph, ifname, &pifinfo); in i_ipadm_get_all_if_info()
573 i_ipadm_get_db_if(ipadm_handle_t iph, const char *ifname, nvlist_t **onvl) in i_ipadm_get_db_if() argument
[all …]
H A Dipadm_prop.c389 const char *ifname = arg; in i_ipadm_set_mtu() local
410 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_mtu()
428 const char *ifname = arg; in i_ipadm_set_metric() local
442 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_metric()
459 const char *ifname = arg; in i_ipadm_set_usesrc() local
476 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_usesrc()
597 const char *ifname = arg; in i_ipadm_set_ifprop_flags() local
651 status = i_ipadm_set_flags(iph, ifname, af, on_flags, in i_ipadm_set_ifprop_flags()
713 const char *ifname = arg; in i_ipadm_set_forwarding() local
720 if (ifname != NULL) { in i_ipadm_set_forwarding()
[all …]
H A Dlibipadm.c305 i_ipadm_get_index(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_get_index() argument
312 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_index()
476 i_ipadm_is_loopback(const char *ifname) in i_ipadm_is_loopback() argument
480 return (strncmp(ifname, LOOPBACK_IF, len) == 0 && in i_ipadm_is_loopback()
481 (ifname[len] == '\0' || ifname[len] == IPADM_LOGICAL_SEP)); in i_ipadm_is_loopback()
493 i_ipadm_is_vni(const char *ifname) in i_ipadm_is_vni() argument
497 return (ifparse_ifspec(ifname, &ifsp) && in i_ipadm_is_vni()
505 i_ipadm_is_6to4(ipadm_handle_t iph, char *ifname) in i_ipadm_is_6to4() argument
516 dlstatus = dladm_name2info(iph->iph_dlh, ifname, &linkid, NULL, in i_ipadm_is_6to4()
535 ipadm_if_enabled(ipadm_handle_t iph, const char *ifname, sa_family_t af) in ipadm_if_enabled() argument
[all …]
H A Dipadm_ngz.c73 char *ifname, in i_ipadm_rtioctl4() argument
126 w_ifp.sdl_index = if_nametoindex(ifname); in i_ipadm_rtioctl4()
152 char *ifname, in i_ipadm_rtioctl6() argument
202 w_ifp.sdl_index = if_nametoindex(ifname); in i_ipadm_rtioctl6()
386 char *ifname = nwd->ngz_ifname; in i_ipadm_zone_network_attr() local
405 if (ifname != NULL && strcmp(ifname, link) != 0) in i_ipadm_zone_network_attr()
438 if (ifname != NULL) { in i_ipadm_zone_network_attr()
454 ipadm_init_net_from_gz(ipadm_handle_t iph, char *ifname, in ipadm_init_net_from_gz() argument
465 if (ifname != NULL && in ipadm_init_net_from_gz()
466 i_ipadm_get_flags(iph, ifname, AF_INET, &flags) != IPADM_SUCCESS && in ipadm_init_net_from_gz()
[all …]
H A Dipadm_addr.c158 i_ipadm_init_addr(ipadm_addrobj_t ipaddr, const char *ifname, in i_ipadm_init_addr() argument
162 (void) strlcpy(ipaddr->ipadm_ifname, ifname, in i_ipadm_init_addr()
351 ipadm_add_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_add_aobjname() argument
358 (void) strlcpy(larg.ia_ifname, ifname, sizeof (larg.ia_ifname)); in ipadm_add_aobjname()
374 ipadm_delete_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af, in ipadm_delete_aobjname() argument
379 i_ipadm_init_addr(&aobj, ifname, aobjname, atype); in ipadm_delete_aobjname()
390 i_ipadm_active_addr_info(ipadm_handle_t iph, const char *ifname, in i_ipadm_active_addr_info() argument
428 if (ifname != NULL && strcmp(cifname, ifname) != 0) in i_ipadm_active_addr_info()
726 char *ifname = NULL; in i_ipadm_nvl2ainfo_persist() local
746 err = nvpair_value_string(nvp, &ifname); in i_ipadm_nvl2ainfo_persist()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dl2_packet.c34 l2->ifname, dlpi_strerror(retval)); in link_init()
42 l2->ifname, dlpi_strerror(retval)); in link_init()
49 l2->ifname, dlpi_strerror(retval)); in link_init()
54 l2->ifname, sizeof (l2->own_addr)); in link_init()
80 "message on %s: %s", l2->ifname, dlpi_strerror(retval)); in l2_packet_send()
99 "message on %s: %s", l2->ifname, dlpi_strerror(retval)); in l2_packet_receive()
115 l2_packet_init(const char *ifname, unsigned short protocol, in l2_packet_init() argument
126 (void) strlcpy(l2->ifname, ifname, sizeof (l2->ifname)); in l2_packet_init()
130 retval = dlpi_open(l2->ifname, &l2->dh, DLPI_RAW); in l2_packet_init()
133 l2->ifname, dlpi_strerror(retval)); in l2_packet_init()
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libdscp/
H A Dlibdscp.c247 char ifname[LIFNAMSIZ]; in dscpAddr() local
259 if (get_ifname(ifname) != 0) { in dscpAddr()
274 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
293 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
357 get_ifname(char *ifname) in get_ifname() argument
371 (void) memset(ifname, 0, LIFNAMSIZ); in get_ifname()
393 i = read(fd, &ifname[count], size - count); in get_ifname()
412 if (isalnum(ifname[i]) != 0) { in get_ifname()
425 if (isalnum(ifname[i]) == 0) { in get_ifname()
436 (void) memmove(ifname, &ifname[begin], len); in get_ifname()
[all …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprintaddr.c11 void printaddr(v, type, ifname, addr, mask) in printaddr() argument
13 char *ifname;
25 printf("%s", ifname);
59 printf("%s/%s", ifname, suffix);
H A Dprintactiveaddr.c16 printactiveaddress(v, fmt, addr, ifname) in printactiveaddress() argument
20 char *ifname;
29 printaddr(v, FRI_NORMAL, ifname, (u_32_t *)&addr->in6, NULL);
/illumos-gate/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 …]
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c54 const char *ifname, const void* pr_val, uint_t flags) in tcp_set_1948phrase() argument
73 const char *ifname, void *val, uint_t psize, uint_t flags) in tcp_listener_conf_get() argument
117 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_add() argument
166 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument
195 const char *ifname, const void *pval, uint_t flags) in tcp_set_buf_prop() argument
198 cr, pinfo, ifname, pval, flags)); in tcp_set_buf_prop()
202 tcp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in tcp_get_buf_prop() argument
206 pinfo, ifname, val, psize, flags)); in tcp_get_buf_prop()
216 const char *ifname, const void *pval, uint_t flags) in tcp_smallest_anon_set() argument
234 const char *ifname, const void *pval, uint_t flags) in tcp_largest_anon_set() argument
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c56 ifname_to_hostconf(const char *ifname, boolean_t isv6) in ifname_to_hostconf() argument
61 DHCP_HOSTCONF_PREFIX, ifname, in ifname_to_hostconf()
77 remove_hostconf(const char *ifname, boolean_t isv6) in remove_hostconf() argument
79 return (unlink(ifname_to_hostconf(ifname, isv6))); in remove_hostconf()
95 read_hostconf(const char *ifname, PKT_LIST **plpp, uint_t plplen, in read_hostconf() argument
107 fd = open(ifname_to_hostconf(ifname, isv6), O_RDONLY); in read_hostconf()
322 const char *ifname, in write_hostconf() argument
335 fd = open(ifname_to_hostconf(ifname, isv6), O_WRONLY|O_CREAT|O_TRUNC, in write_hostconf()
/illumos-gate/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()
/illumos-gate/usr/src/test/net-tests/tests/
H A Dnet_common.ksh308 typeset ifname=$2
310 typeset ipname=$ifname/$version
328 typeset ipname=$ifname/v6add
347 typeset ifname=$2
348 typeset err="failed to delete interface $ifname in zone $zone"
354 if zlogin $zone ipadm show-if $ifname > /dev/null 2>&1; then
355 if zlogin $zone ipadm delete-if $ifname > /dev/null; then
356 dbg "deleted interface $ifname in zone $zone"
361 dbg "interface $ifname doesn't exist in zone $zone"
/illumos-gate/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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/
H A Dipadm.c499 char *ifname; in get_ipmp_members() local
521 for (ifname = strtok(optarg, ","); in get_ipmp_members()
522 ifname != NULL; in get_ipmp_members()
523 ifname = strtok(NULL, ",")) { in get_ipmp_members()
528 if (strlcpy(member->if_name, ifname, in get_ipmp_members()
531 "name: %s", ifname); in get_ipmp_members()
638 char *ifname; in do_action_ipmp() local
651 ifname = member->if_name; in do_action_ipmp()
653 status = func(iph, ipmp, ifname, flags); in do_action_ipmp()
655 die(msg, ifname, ipmp, ipadm_status2str(status)); in do_action_ipmp()
[all …]

12345