Home
last modified time | relevance | path

Searched refs:miniroute (Results 1 – 3 of 3) sorted by relevance

/external/syslinux/gpxe/src/net/
Dipv6.c59 struct ipv6_miniroute *miniroute; in add_ipv6_miniroute() local
61 miniroute = malloc ( sizeof ( *miniroute ) ); in add_ipv6_miniroute()
62 if ( miniroute ) { in add_ipv6_miniroute()
64 miniroute->netdev = netdev_get ( netdev ); in add_ipv6_miniroute()
65 miniroute->prefix = prefix; in add_ipv6_miniroute()
66 miniroute->prefix_len = prefix_len; in add_ipv6_miniroute()
67 miniroute->address = address; in add_ipv6_miniroute()
68 miniroute->gateway = gateway; in add_ipv6_miniroute()
72 list_add_tail ( &miniroute->list, &miniroutes ); in add_ipv6_miniroute()
74 list_add ( &miniroute->list, &miniroutes ); in add_ipv6_miniroute()
[all …]
Dipv4.c49 struct ipv4_miniroute *miniroute; in add_ipv4_miniroute() local
58 miniroute = malloc ( sizeof ( *miniroute ) ); in add_ipv4_miniroute()
59 if ( ! miniroute ) { in add_ipv4_miniroute()
65 miniroute->netdev = netdev_get ( netdev ); in add_ipv4_miniroute()
66 miniroute->address = address; in add_ipv4_miniroute()
67 miniroute->netmask = netmask; in add_ipv4_miniroute()
68 miniroute->gateway = gateway; in add_ipv4_miniroute()
74 list_add_tail ( &miniroute->list, &ipv4_miniroutes ); in add_ipv4_miniroute()
76 list_add ( &miniroute->list, &ipv4_miniroutes ); in add_ipv4_miniroute()
79 return miniroute; in add_ipv4_miniroute()
[all …]
/external/syslinux/gpxe/src/usr/
Droute.c33 struct ipv4_miniroute *miniroute; in route() local
35 list_for_each_entry ( miniroute, &ipv4_miniroutes, list ) { in route()
36 printf ( "%s: %s/", miniroute->netdev->name, in route()
37 inet_ntoa ( miniroute->address ) ); in route()
38 printf ( "%s", inet_ntoa ( miniroute->netmask ) ); in route()
39 if ( miniroute->gateway.s_addr ) in route()
40 printf ( " gw %s", inet_ntoa ( miniroute->gateway ) ); in route()
41 if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) ) in route()