diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-07 18:47:08 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-08 20:19:26 -0500 |
commit | 15b1c0e822f578306332d4f4c449250db5c5dceb (patch) | |
tree | c577cadd3edb7a9915501f1bcb4be086961bb316 /include/net/ax25.h | |
parent | e8cc49bb0fdb9e18a99e6780073d1400ba2b0d1f (diff) |
[AX.25]: Fix default address and broadcast address initialization.
Only the callsign but not the SSID part of an AX.25 address is ASCII
based but Linux by initializes the SSID which should be just a 4-bit
number from ASCII anyway.
Fix that and convert the code to use a shared constant for both default
addresses. While at it, use the same style for null_ax25_address also.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ax25.h')
-rw-r--r-- | include/net/ax25.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 41acb093caae..e1d116f11923 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
@@ -282,9 +282,9 @@ extern void ax25_fillin_cb(ax25_cb *, ax25_dev *); | |||
282 | extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *); | 282 | extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *); |
283 | 283 | ||
284 | /* ax25_addr.c */ | 284 | /* ax25_addr.c */ |
285 | extern ax25_address null_ax25_address; | 285 | extern const ax25_address ax25_bcast; |
286 | extern char *ax2asc(char *buf, const ax25_address *); | 286 | extern const ax25_address ax25_defaddr; |
287 | extern void asc2ax(ax25_address *addr, const char *callsign); | 287 | extern const ax25_address null_ax25_address; |
288 | extern int ax25cmp(const ax25_address *, const ax25_address *); | 288 | extern int ax25cmp(const ax25_address *, const ax25_address *); |
289 | extern int ax25digicmp(const ax25_digi *, const ax25_digi *); | 289 | extern int ax25digicmp(const ax25_digi *, const ax25_digi *); |
290 | extern const unsigned char *ax25_addr_parse(const unsigned char *, int, | 290 | extern const unsigned char *ax25_addr_parse(const unsigned char *, int, |