OpenSourceRouting
  1. OpenSourceRouting

procket

Public
AuthorCommitMessageCommit dateIssues
Christian FrankeChristian Franke
539c6523f35Allow dashes in interfaces
Martin WinterMartin Winter
4d511c8eda1Added comment to README.md to make highlight the fact that this is a modified copy of the procket library
Rick PayneRick Payne
ab57bd20c44Fixup the app.src file so relx doesn't complain
Christian FrankeChristian Franke
77d7acf70e8Makefile: honor ERL_CFLAGS and ERL_LDFLAGS
Christian FrankeChristian Franke
115942c2282Makefile: allow to override CC/CFLAGS/etc
Rick PayneRick Payne
16d1a46d7c0Add option to ADDMULTI for the ISIS addresses on ethernet...
Rick PayneRick Payne
b192fc4ddeaExport family/1
Michael SantosMichael Santos
7bf5832d94cAllow setting the backlog on privileged sockets
Michael SantosMichael Santos
53ffa0016feprocket_cmd: increase backlog to SOMAXCONN
Michael SantosMichael Santos
264e21a67fbAdd a stub for unload
Michael SantosMichael Santos
98113e3d6c0read/recvfrom: remove special case for EINTR
Michael SantosMichael Santos
35b3693211cerlang:error/1 -> erlang:nif_error/1
Kirill PinchukKirill Pinchuk
f50fec77c9aAdd stubs for reload and upgrade
Michael SantosMichael Santos
6b3f0ae1439bpf: use the ioctl functions from procket_ioctlFix an unresolved function call to the obsolete inout/1.
Michael SantosMichael Santos
dcf5f78c258listen: increase the default backlog to 128Increase the default listenq to 128 (the standard max for most systems). Values exceeding the system limit are truncated to the system max. The behaviour of 0 and negative numbers is system dependent. UNP says about the backlog: Historically, sample code always shows a backlog of 5, as that was the maximum value supported by 4.2BSD. This was adequate in the 1980s when busy servers...
Michael SantosMichael Santos
43a85fba3c4Add an example of setting the IPv6 hop limitSet the default hop limit for this socket.
Michael SantosMichael Santos
ac607ccc9b8MMerge branch 'send-recv-msg'
Michael SantosMichael Santos
00072b0b82dCorrect check for character deviceThe procket helper will only open devices under the /dev directory. Append "/dev/" to the device name for the permissions check.
Michael SantosMichael Santos
2fccb2a485dexamples/icmp: filter ICMP packetsWhen pinging localhost, the ICMP socket will see the echo request and reply. Filter out the echo request. icmp:ping/2,1 will still crash on other ICMP types. Thanks @infospacer!
Michael SantosMichael Santos
006c6eed4b3procket_msg: fix padding on 64-bit
Michael SantosMichael Santos
282373ffb22Increment version for sendmsg/recvsg support
Michael SantosMichael Santos
f203317a808Support for ancillary socket data
Michael SantosMichael Santos
b4efdcd803asendmsg/recvmsg; return the number of bytesReturn the number of bytes sent/received. The msghdr structure contains a pointer to an iovec which may consist of several buffers. The sendmsg and recvmsg NIFs are not aware of the size and number of the buffers.
Michael SantosMichael Santos
8ba3d937777alloc/1: return resources in same order as arg
Michael SantosMichael Santos
0eb6a5a3bfeAdd support for sendmsg/recvmsgIn preparation for support of socket ancillary data (RFC3542, Unix sockets, ...), add support for sendmsg(2) and recvmsg(2). recvmsg/3 and sendmsg/3 require a struct msghdr to be prepared containing pointers to allocated memory (to be read into and to be read from respectively). This buffer will have to be allocated using procket:alloc/1.
Michael SantosMichael Santos
ca453fb9cebRemove unused function
Michael SantosMichael Santos
4ff0fa4dc6dBump minor version for getsockopt/4
Michael SantosMichael Santos
7515b0549f3MMerge branch 'master' of github.com:msantos/procketConflicts: c_src/procket.c
Michael SantosMichael Santos
277fb24c87bAdd support for getsockopt(2)
Michael SantosMichael Santos
c025a3df02dWhitespace cleanup
Michael SantosMichael Santos
b6e4c3b6097Sort NIF functions by arity/alphabetically
Michael SantosMichael Santos
3fbc15c849aCopyright heartbeat, adjust version to semver
Michael SantosMichael Santos
6cdc207bfa2Update rebar URL
Michael SantosMichael Santos
0c32f661dc5README and whitespace cleanup
Michael SantosMichael Santos
f3870b0fd5eCompile errors on some platforms
Michael SantosMichael Santos
390405913adInaccessible devices should not return an errorget_progname/2 should only return a string.
Michael SantosMichael Santos
e0824411826README cleanup
Michael SantosMichael Santos
65cd10479bbDocument NIF interfaceFinally add documentation for the C NIF functions. Make the C side match the documentation.
Michael SantosMichael Santos
2a30b69092fFigure out how to run procket setuid helperModify the way the procket external setuid helper binary is called based on: * whether a progname has explicitly been passed in (run the command immediately) * if the procket helper is setuid/setgid (run the command immediately) * if a device is requested to be opened, check the access rights of the process (if read/write, run command immediately) * otherwise, use sudo
Michael SantosMichael Santos
00baf5a1e23Update contributors
Michael SantosMichael Santos
a81933e355bUse sudo if not privileged to open socket
Michael SantosMichael Santos
6bf791db266suppress warning: remove unused argument
Michael SantosMichael Santos
39ac48d51f1MMerge branch 'sudo' of https://github.com/yamt/procket into yt/sudo
YAMAMOTO TakashiYAMAMOTO Takashi
c31194daf14use sudo only when necessarytry sudo only when it seems necessary. i.e. when we actually got EACCES. motivations: - the use of sudo involves some side effects which might be undesirable. for example, as sudo is a setuid binary, LD_PRELOAD is unset. it makes difficult to use this with a rump kernel. http://netbsd.gw.com/cgi-bin/man-cgi?rumphijack++NetBSD-current - as priv/procket command can be used to open arbit...
Michael SantosMichael Santos
f27e6870ffeMMerge pull request #7 from yamt/netbsdmake bpf work on NetBSD
YAMAMOTO TakashiYAMAMOTO Takashi
1d04b94d365make bpf work on NetBSD
Michael SantosMichael Santos
76eeb83f602MMerge pull request #6 from jj1bdx/jj1bdx-icmp6-flag-fixmodified examples/icmp6.erl to use 'ipv6-icmp' instead of icmp6
Kenji RikitakeKenji Rikitake
6490ead623fmodified examples/icmp6.erl to use 'ipv6-icmp' instead of icmp6
Michael SantosMichael Santos
f9bba43a09bMatch the IANA protocol naming for ICMP6Leave the icmp6 atom as an alias.
Michael SantosMichael Santos
2b8c6a9174fMMerge branch 'master' of github.com:msantos/procket