| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
- Add message length checking.
PR: 151664 [1]
Submitted by: Alexey Illarionov <littlesavage rambler.ru> [1]
Reviewed by: yar
|
|
|
|
|
| |
PR: 151664
Submitted by: Alexey Illarionov <littlesavage rambler.ru>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- add static and const where appropriate
- check pointers against NULL
- minor styling nits
- it is actually WARNS=6 clean for non-strict alignment platforms
This is shamelessly stolen from DragonflyBSD and reduces our diff.
PR: bin/140078
Approved by: ed (co-mentor)
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
to not conflict with err().
|
|
|
|
|
|
|
|
|
|
| |
- add show as alias for get
- add weights to allow mpath to do more than equal cost
- add sticky / nostick to disable / re-enable per-connection load balancing
This adds a field to rt_metrics_lite so network bits of world will need to be re-built.
Reviewed by: jeli & qingli
|
|
|
|
|
| |
a user uses 0.0.0.0/0 as an alias for default.
Obtained from: Mykola Dzham (freebsd@levsha.org.ua)
|
|
|
|
|
|
|
|
|
|
|
| |
calculation was too agressive. Instead we should only
look at each nibble. This makes it so we make
10.2.0.0 become 10.2/16 NOT 10.2/17.
Need to explore the non-cidr address issue. The two
may not be seperable..
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if a entry is not route add -net xxx/bits then we should use
the addr (xxx) to establish the number of bits by looking at
the first non-zero bit. So if we enter
route add -net 10.1.1.0 10.1.3.5
this is the same as doing
route add -net 10.1.1.0/24
Since the 8th bit (zero counting) is set to 1 we set bits
to 32-8.
Users can of course still use the /x to change this behavior
or in cases where the network is in the trailing part
of the address, a "netmask" argument can be supplied to
override what is established from the interpretation of the
address itself. e.g:
route add -net 10.1.1.8 -netmask 0xff00ffff
should overide and place the proper CIDR mask in place.
PR: 131365
MFC after: 1 week
|
|
|
|
|
|
| |
0.0.0.0/1 is not the same as 0.0.0.0/0.
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. separating L2 tables (ARP, NDP) from the L3 routing tables
2. removing as much locking dependencies among these layers as
possible to allow for some parallelism in the search operations
3. simplify the logic in the routing code,
The most notable end result is the obsolescent of the route
cloning (RTF_CLONING) concept, which translated into code reduction
in both IPv4 ARP and IPv6 NDP related modules, and size reduction in
struct rtentry{}. The change in design obsoletes the semantics of
RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland
applications such as "arp" and "ndp" have been modified to reflect
those changes. The output from "netstat -r" shows only the routing
entries.
Quite a few developers have contributed to this project in the
past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and
Andre Oppermann. And most recently:
- Kip Macy revised the locking code completely, thus completing
the last piece of the puzzle, Kip has also been conducting
active functional testing
- Sam Leffler has helped me improving/refactoring the code, and
provided valuable reviews
- Julian Elischer setup the perforce tree for me and has helped
me maintaining that branch before the svn conversion
|
|
|
|
|
|
| |
PR: bin/122403
Submitted by: az
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
'get'. Since rtmsg() always gets called and returns 0 on success and -1
on failure, it's possible to exit with a suitable exit code by calling
exit(ret != 0) instead, as is done at the end of newroute().
PR: bin/112303
Submitted by: bruce@cran.org.uk
MFC after: 1 week
|
|
|
|
|
|
| |
it appears to be in: there is also CIDR.
Noticed by: tegge
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
command would add incorrect routing entries if network numbers weren't
fully "spelled" out according to their class. For example:
# route add 128.0/16 (works)
# route add 128/16 (doesn't work)
# route add 193.0.0/24 (works)
# route add 193/24 (doesn't work)
Also, rework the way a netmask is deduced from network number if
it [netmask] is not specified.
Submitted by: Nuno Antunes <nuno.antunes@gmail.com> (mostly)
MFC after: 1 week
|
|
|
|
| |
This is also a good chance to apply style.Makefile(5) in some cases.
|
|
|
|
|
| |
PR: docs/85095
Submitted by: Rostislav Krasny
|
|
|
|
| |
Reviewed by: arch
|
|
|
|
|
|
|
|
|
| |
- Add description for EEXIST.
- Change description for ENOBUFS. Routing socket can return
this error for many different reasons, including general
memory shortage, mbuf memory shortage and rtentry zone.
PR: kern/64090 [1]
|
|
|
|
|
|
|
|
|
|
| |
or gateway.
- improves error reporting using gai_strerror(3) instead of
printing "bad value".
- remove "0" for servname argument for getaddrinfo(3).
Submitted by: Andreas Kohn <andreas __at__ syndrom23.de>
MFC after: 1 week
|
|
|
|
|
| |
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Update document dates.
Prodded by: ru
|
|
|
|
|
|
|
|
| |
to lo(4) interfaces to have an effect, and that this is not needed
when using IP fast forwarding.
Sponsored by: eXtensible Open Router Project <URL:http://www.xorp.org/>
MFC after: 3 weeks
|
| |
|
|
|
|
|
|
|
| |
in all cases. The failure mode in the PR is easily reproducible without
this patch.
PR: bin/43139
|
| |
|
|
|
|
|
|
|
|
|
|
| |
root is allowed to create raw sockets, then they will be able to create
routing sockets, too. However prison-root is not able to manipulate
routing tables. So when route(8) attempts to write to a routing
socket and recieves EPERM from the kernel, exit rather than moving
on with execution.
Approved by: bmilekic (mentor)
|
|
|
|
|
|
|
| |
o Print the link state for interface messages in monitor mode.
No objections by: sam, wpaul, ru, bms
Brucification by: bde
|
|
|
|
|
|
|
|
|
|
|
| |
prior sysctl due to the structure growing between calls try again.
Also try again for deleting routes if things fail. We've seen
route -f fail this way which does not actually flush all routes.
This fixes it. It will whine but it will do the work.
PR: 56732
Obtained from: IronPort
|
| |
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core, imp
|
|
|
|
| |
Use WARNS?= instead of WARNS=.
|
|
|
|
|
|
|
| |
embeded scopeid form.
Reported by: dwmalone
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
While I'm here, add a missing comma
PR: 41787
Obtained from: OpenBSD
MFC after: 5 days
|
|
|
|
| |
Reviewed by: ru
|
|
|
|
| |
Pointed by: ru
|
|
|
|
|
| |
LANG=C tr 'a-z' 'A-Z'
for hypotetical case that script may generate non-ascii characters
|
| |
|
|
|
|
|
| |
a nice dump of the entire routing table. Allow non-root users
to see it too.
|
| |
|
|
|
|
|
|
|
|
| |
answer for the euid. As a result, fix it such that setuid scripts or
programs may call route(8) to do work on their behalf.
Reviewed by: ru
MFC after: 3 days
|
| |
|
|
|
|
| |
Obtained from: KAME
|
| |
|