diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-09-08 20:00:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-11 15:55:06 -0400 |
commit | f5bb1c558405aaac41b08b2ea71137db9db46e72 (patch) | |
tree | deeabf046d4d18675bf85360a3059eb4f29f8d62 /include/linux/phonet.h | |
parent | 998ec759ef2fc9c60319815c72b2b699ab939733 (diff) |
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>
Diffstat (limited to 'include/linux/phonet.h')
-rw-r--r-- | include/linux/phonet.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/phonet.h b/include/linux/phonet.h index ee5e3c9e2bca..82b45d16e50c 100644 --- a/include/linux/phonet.h +++ b/include/linux/phonet.h | |||
@@ -170,4 +170,21 @@ static inline __u8 pn_sockaddr_get_resource(const struct sockaddr_pn *spn) | |||
170 | return spn->spn_resource; | 170 | return spn->spn_resource; |
171 | } | 171 | } |
172 | 172 | ||
173 | /* Phonet device ioctl requests */ | ||
174 | #ifdef __KERNEL__ | ||
175 | #define SIOCPNGAUTOCONF (SIOCDEVPRIVATE + 0) | ||
176 | |||
177 | struct if_phonet_autoconf { | ||
178 | uint8_t device; | ||
179 | }; | ||
180 | |||
181 | struct if_phonet_req { | ||
182 | char ifr_phonet_name[16]; | ||
183 | union { | ||
184 | struct if_phonet_autoconf ifru_phonet_autoconf; | ||
185 | } ifr_ifru; | ||
186 | }; | ||
187 | #define ifr_phonet_autoconf ifr_ifru.ifru_phonet_autoconf | ||
188 | #endif /* __KERNEL__ */ | ||
189 | |||
173 | #endif | 190 | #endif |