1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Regenerate patches with make makepatch to silence portlint

- Take maintainership

Sponsored by:	Netgate
This commit is contained in:
Renato Botelho 2015-06-07 13:13:53 +00:00
parent efe4dab2e5
commit 3dbe47d570
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388697
4 changed files with 18 additions and 18 deletions

View File

@ -7,7 +7,7 @@ PORTREVISION= 4
CATEGORIES= net-mgmt
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
MAINTAINER= garga@FreeBSD.org
COMMENT= Simple proxy arp daemon
LICENSE= BSD3CLAUSE

View File

@ -1,5 +1,5 @@
--- /dev/null Tue Oct 7 23:33:35 1997
+++ Makefile Tue Oct 7 23:42:51 1997
--- Makefile.orig 2015-06-07 13:12:33 UTC
+++ Makefile
@@ -0,0 +1,11 @@
+PROG= choparp
+MAN8= choparp.8

View File

@ -1,5 +1,5 @@
--- choparp.8.orig 2002-11-08 07:36:03.000000000 +0900
+++ choparp.8 2010-05-04 20:39:28.291199414 +0900
--- choparp.8.orig 2002-11-07 22:36:03 UTC
+++ choparp.8
@@ -34,7 +34,8 @@
.Nm choparp
.Nd cheap and omitted proxy ARP
@ -19,7 +19,7 @@
It watches ARP request packets visible on the interface specified by argument
.Ar if_name ,
and sends proxy ARP reply to the sender if the ARP request queries the
@@ -52,7 +53,7 @@
@@ -52,7 +53,7 @@ for the network specified by
.Ar net_addr Ns / Ar net_mask .
.Pp
.Ar mac_addr
@ -28,7 +28,7 @@
It is normally the address of
.Ar if_name .
The format of
@@ -72,7 +73,7 @@
@@ -72,7 +73,7 @@ or be a 32 bit hexadecimal value startin
.Dq 0x
.Pq for example Ad 0x858a0186 .
.Ar net_mask
@ -37,7 +37,7 @@
or alternatively as a mask length. The following address specifications
are therefore equivalent:
.Bl -item -offset indent
@@ -89,6 +90,16 @@
@@ -89,6 +90,16 @@ Addresses can be
.Em excluded
by preceding them with
.Fl

View File

@ -1,5 +1,5 @@
--- choparp.c.orig 2002-11-08 07:36:03.000000000 +0900
+++ choparp.c 2010-05-04 20:39:28.279310506 +0900
--- choparp.c.orig 2002-11-07 22:36:03 UTC
+++ choparp.c
@@ -42,6 +42,7 @@
#include <string.h>
#include <sys/types.h>
@ -8,7 +8,7 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include <net/bpf.h>
@@ -75,6 +76,7 @@
@@ -75,6 +76,7 @@ struct cidr {
struct cidr *targets = NULL, *excludes = NULL;
u_char target_mac[ETHER_ADDR_LEN]; /* target MAC address */
@ -16,7 +16,7 @@
/*
ARP filter program
@@ -239,6 +241,16 @@
@@ -239,6 +241,16 @@ checkarp(char *arpbuf){
fprintf(stderr,"checkarp: WARNING: received unknown type ARP request.\n");
return(0);
}
@ -33,7 +33,7 @@
target_ip = ntohl(*(u_int32_t *)(arp->arp_tpa));
return match(target_ip, targets) && !match(target_ip, excludes);
}
@@ -280,13 +292,22 @@
@@ -280,13 +292,22 @@ loop(int fd, char *buf, size_t buflen){
char *rframe;
char *sframe;
size_t frame_len;
@ -60,7 +60,7 @@
if (r < 0) {
if (errno == EINTR)
@@ -295,7 +316,7 @@
@@ -295,7 +316,7 @@ loop(int fd, char *buf, size_t buflen){
return;
}
@ -69,7 +69,7 @@
if (rlen < 0) {
if (errno == EINTR)
continue;
@@ -307,7 +328,7 @@
@@ -307,7 +328,7 @@ loop(int fd, char *buf, size_t buflen){
while((rframe = getarp(p, rlen, &nextp, &nextlen)) != NULL){
if (checkarp(rframe)){
sframe = gen_arpreply(rframe, &frame_len);
@ -78,7 +78,7 @@
}
p = nextp;
rlen = nextlen;
@@ -362,13 +383,13 @@
@@ -362,13 +383,13 @@ atoip(char *buf, u_int32_t *ip_addr){
void
usage(void){
@ -94,7 +94,7 @@
char *buf, *ifname;
struct cidr **targets_tail = &targets, **excludes_tail = &excludes;
#define APPEND(LIST,ADDR,MASK) \
@@ -381,13 +402,24 @@
@@ -381,13 +402,24 @@ main(int argc, char **argv){
} while (0)
size_t buflen;
@ -123,7 +123,7 @@
while (argc > 0) {
u_int32_t addr, mask = ~0;
@@ -437,6 +469,9 @@
@@ -437,6 +469,9 @@ main(int argc, char **argv){
#endif
if ((fd = openbpf(ifname, &buf, &buflen)) < 0)
return(-1);