whitespace cleanup
Get rid of blanks at end of line and extra lines at eof Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
@@ -8,7 +8,7 @@ endif
|
|||||||
|
|
||||||
all: bridge
|
all: bridge
|
||||||
|
|
||||||
bridge: $(BROBJ) $(LIBNETLINK)
|
bridge: $(BROBJ) $(LIBNETLINK)
|
||||||
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
@@ -16,4 +16,3 @@ install: all
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BROBJ) bridge
|
rm -f $(BROBJ) bridge
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
9 audit
|
9 audit
|
||||||
10 fiblookup
|
10 fiblookup
|
||||||
11 connector
|
11 connector
|
||||||
12 nft
|
12 nft
|
||||||
13 ip6fw
|
13 ip6fw
|
||||||
14 dec-rt
|
14 dec-rt
|
||||||
15 uevent
|
15 uevent
|
||||||
@@ -20,4 +20,4 @@
|
|||||||
18 scsi-trans
|
18 scsi-trans
|
||||||
19 ecryptfs
|
19 ecryptfs
|
||||||
20 rdma
|
20 rdma
|
||||||
21 crypto
|
21 crypto
|
||||||
|
|||||||
@@ -24,4 +24,3 @@ install:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a
|
rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a
|
||||||
|
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
|
|||||||
.br
|
.br
|
||||||
void *jarg)
|
void *jarg)
|
||||||
.sp
|
.sp
|
||||||
int rtnl_listen(struct rtnl_handle *rtnl,
|
int rtnl_listen(struct rtnl_handle *rtnl,
|
||||||
int (*handler)(struct sockaddr_nl *, struct rtnl_ctrl_data *,
|
int (*handler)(struct sockaddr_nl *, struct rtnl_ctrl_data *,
|
||||||
struct nlmsghdr *n, void *),
|
struct nlmsghdr *n, void *),
|
||||||
void *jarg)
|
void *jarg)
|
||||||
.sp
|
.sp
|
||||||
int rtnl_from_file(FILE *rtnl,
|
int rtnl_from_file(FILE *rtnl,
|
||||||
int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
|
int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
|
||||||
void *jarg)
|
void *jarg)
|
||||||
.sp
|
.sp
|
||||||
@@ -49,35 +49,35 @@ int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data)
|
|||||||
.sp
|
.sp
|
||||||
int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen)
|
int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen)
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
libnetlink provides a higher level interface to
|
libnetlink provides a higher level interface to
|
||||||
.BR rtnetlink(7).
|
.BR rtnetlink(7).
|
||||||
The read functions return 0 on success and a negative errno on failure.
|
The read functions return 0 on success and a negative errno on failure.
|
||||||
The send functions return the amount of data sent, or -1 on error.
|
The send functions return the amount of data sent, or -1 on error.
|
||||||
.TP
|
.TP
|
||||||
rtnl_open
|
rtnl_open
|
||||||
Open a rtnetlink socket and save the state into the
|
Open a rtnetlink socket and save the state into the
|
||||||
.B rth
|
.B rth
|
||||||
handle. This handle is passed to all subsequent calls.
|
handle. This handle is passed to all subsequent calls.
|
||||||
.B subscriptions
|
.B subscriptions
|
||||||
is a bitmap of the rtnetlink multicast groups the socket will be
|
is a bitmap of the rtnetlink multicast groups the socket will be
|
||||||
a member of.
|
a member of.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
rtnl_wilddump_request
|
rtnl_wilddump_request
|
||||||
Request a full dump of the
|
Request a full dump of the
|
||||||
.B type
|
.B type
|
||||||
database for
|
database for
|
||||||
.B family
|
.B family
|
||||||
addresses.
|
addresses.
|
||||||
.B type
|
.B type
|
||||||
is a rtnetlink message type.
|
is a rtnetlink message type.
|
||||||
.\" XXX
|
.\" XXX
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
rtnl_dump_request
|
rtnl_dump_request
|
||||||
Request a full dump of the
|
Request a full dump of the
|
||||||
.B type
|
.B type
|
||||||
data buffer into
|
data buffer into
|
||||||
.B buf
|
.B buf
|
||||||
with maximum length of
|
with maximum length of
|
||||||
.B len.
|
.B len.
|
||||||
@@ -91,12 +91,12 @@ The
|
|||||||
.B filter
|
.B filter
|
||||||
callback checks if the received message is wanted. It gets the source
|
callback checks if the received message is wanted. It gets the source
|
||||||
address of the message, the message itself and
|
address of the message, the message itself and
|
||||||
.B arg1
|
.B arg1
|
||||||
as arguments. 0 as return means that the filter passed, a negative
|
as arguments. 0 as return means that the filter passed, a negative
|
||||||
value is returned
|
value is returned
|
||||||
by
|
by
|
||||||
.I rtnl_dump_filter
|
.I rtnl_dump_filter
|
||||||
in case of error. NULL for
|
in case of error. NULL for
|
||||||
.I filter
|
.I filter
|
||||||
means to not use a filter.
|
means to not use a filter.
|
||||||
.B junk
|
.B junk
|
||||||
@@ -106,7 +106,7 @@ pending, this function does not block.
|
|||||||
|
|
||||||
.TP
|
.TP
|
||||||
rtnl_listen
|
rtnl_listen
|
||||||
Receive netlink data after a request and pass it to
|
Receive netlink data after a request and pass it to
|
||||||
.I handler.
|
.I handler.
|
||||||
.B handler
|
.B handler
|
||||||
is a callback that gets the message source address, anscillary data, the message
|
is a callback that gets the message source address, anscillary data, the message
|
||||||
@@ -118,8 +118,8 @@ pending this function does not block.
|
|||||||
|
|
||||||
.TP
|
.TP
|
||||||
rtnl_from_file
|
rtnl_from_file
|
||||||
Works like
|
Works like
|
||||||
.I rtnl_listen,
|
.I rtnl_listen,
|
||||||
but reads a netlink message bundle from the file
|
but reads a netlink message bundle from the file
|
||||||
.B file
|
.B file
|
||||||
and passes the messages to
|
and passes the messages to
|
||||||
@@ -134,7 +134,7 @@ and
|
|||||||
.BR netlink(3)
|
.BR netlink(3)
|
||||||
on how to generate a rtnetlink message. The following utility functions
|
on how to generate a rtnetlink message. The following utility functions
|
||||||
require a continuous buffer that already contains a netlink message header
|
require a continuous buffer that already contains a netlink message header
|
||||||
and a rtnetlink request.
|
and a rtnetlink request.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
rtnl_send
|
rtnl_send
|
||||||
@@ -168,7 +168,7 @@ length to netlink message
|
|||||||
.B n,
|
.B n,
|
||||||
which is part of a buffer of length
|
which is part of a buffer of length
|
||||||
.B maxlen.
|
.B maxlen.
|
||||||
.B data
|
.B data
|
||||||
is copied.
|
is copied.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
1
man/man8/.gitignore
vendored
1
man/man8/.gitignore
vendored
@@ -2,4 +2,3 @@
|
|||||||
ip-address.8
|
ip-address.8
|
||||||
ip-link.8
|
ip-link.8
|
||||||
ip-route.8
|
ip-route.8
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
|
|||||||
|
|
||||||
HOSTCC ?= $(CC)
|
HOSTCC ?= $(CC)
|
||||||
CCOPTS = $(CBUILD_CFLAGS)
|
CCOPTS = $(CBUILD_CFLAGS)
|
||||||
LDLIBS += -lm
|
LDLIBS += -lm
|
||||||
|
|
||||||
all: $(DISTGEN) $(DISTDATA)
|
all: $(DISTGEN) $(DISTDATA)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user