summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorMichael Chan2007-12-25 06:28:09 +0100
committerDavid S. Miller2008-01-29 00:00:05 +0100
commit7ffc49a6ee92b7138c2ee28073a8e10e58335d62 (patch)
tree6421d389980f3a71b1b53ed6e1548eb08dbf1226 /net/ipv4/tcp_output.c
parent[SOCK] Avoid divides in sk_stream_pages() and __sk_stream_mem_reclaim() (diff)
downloadkernel-qcow2-linux-7ffc49a6ee92b7138c2ee28073a8e10e58335d62.tar.gz
kernel-qcow2-linux-7ffc49a6ee92b7138c2ee28073a8e10e58335d62.tar.xz
kernel-qcow2-linux-7ffc49a6ee92b7138c2ee28073a8e10e58335d62.zip
[ETH]: Combine format_addr() with print_mac().
print_mac() used many most net drivers and format_addr() used by net-sysfs.c are very similar and they can be intergrated. format_addr() is also identically redefined in the qla4xxx iscsi driver. Export a new function sysfs_format_mac() to be used by net-sysfs, qla4xxx and others in the future. Both print_mac() and sysfs_format_mac() call _format_mac_addr() to do the formatting. Changed print_mac() to use unsigned char * to be consistent with net_device struct's dev_addr. Added buffer length overrun checking as suggested by Joe Perches. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions