Application of mopd-2.5.3-mcast.patch:

* Fri Oct 26 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
- updated the mcast patch to match new file locations and to
  fit the linux one (mcast)

* Sat Feb  5 2000 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
- added a hack to register group membership of "MOP Dump/Load
  Assistance" and "MOP Remote Console" multicast groups
  (mcast); need to rewrite it to make use of AF_PACKET

Downloaded from:
ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-mcast.patch.gz
.patch SHA256 = 54e1141196b411c64911aa1a56086b46377de6a1f5bd99dea81a164adb137da3
Patch history copied from:
ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-15.spec
This commit is contained in:
Maciej W. Rozycki
2001-10-26 12:00:00 -04:00
committed by Boris Gjenero
parent 416858fb68
commit 3b606eb2af
6 changed files with 206 additions and 29 deletions

View File

@@ -68,7 +68,7 @@ int AllFlag = 0; /* listen on "all" interfaces */
int DebugFlag = 0; /* print debugging messages */
int Not3Flag = 0; /* Ignore MOP V3 messages */
int Not4Flag = 0; /* Ignore MOP V4 messages */
int promisc = 1; /* Need promisc mode */
int nomulti = 0; /* Need multicast mode */
char *Program;
int
@@ -93,7 +93,7 @@ main(argc, argv)
openlog(Program, LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
while ((op = getopt(argc, argv, "34ad")) != EOF) {
while ((op = getopt(argc, argv, "34adm")) != EOF) {
switch (op) {
case '3':
Not3Flag++;
@@ -107,6 +107,9 @@ main(argc, argv)
case 'd':
DebugFlag++;
break;
case 'm':
nomulti++;
break;
default:
Usage();
/* NOTREACHED */
@@ -132,8 +135,8 @@ main(argc, argv)
void
Usage()
{
(void) fprintf(stderr, "usage: %s -a [ -d ] [ -3 | -4 ]\n",Program);
(void) fprintf(stderr, " %s [ -d ] [ -3 | -4 ] interface\n",
(void) fprintf(stderr, "usage: %s -a [ -d -m ] [ -3 | -4 ]\n",Program);
(void) fprintf(stderr, " %s [ -d -m ] [ -3 | -4 ] interface\n",
Program);
exit(1);
}