Phonet: back-end for autoconfigured addresses
In some cases, the network device driver knows what layer-3 address the device should have. This adds support for the Phonet stack to automatically request from the driver and add that address to the network device. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
998ec759ef
commit
f5bb1c5584
2 changed files with 42 additions and 1 deletions
|
|
@ -170,4 +170,21 @@ static inline __u8 pn_sockaddr_get_resource(const struct sockaddr_pn *spn)
|
|||
return spn->spn_resource;
|
||||
}
|
||||
|
||||
/* Phonet device ioctl requests */
|
||||
#ifdef __KERNEL__
|
||||
#define SIOCPNGAUTOCONF (SIOCDEVPRIVATE + 0)
|
||||
|
||||
struct if_phonet_autoconf {
|
||||
uint8_t device;
|
||||
};
|
||||
|
||||
struct if_phonet_req {
|
||||
char ifr_phonet_name[16];
|
||||
union {
|
||||
struct if_phonet_autoconf ifru_phonet_autoconf;
|
||||
} ifr_ifru;
|
||||
};
|
||||
#define ifr_phonet_autoconf ifr_ifru.ifru_phonet_autoconf
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue